I downloaded the 25.1.6 release of Android tools today and I'm noticing that proguard is falling over with this error:
Error:Execution failed for task ':app:transformClassesWithNewClassShrinkerForDebug'.
> /usr/local/opt/android-sdk/tools/proguard/proguard-android.txt line 43:15 extraneous input '[]' expecting ')'
I'm certain that I've not changed anything in the proguard-android.txt
file. Line 43 reads for me as follows:
void set*(%[]);
I'm noticing that the file here...
https://android.googlesource.com/platform/sdk/+/android-6.0.1_r43/files/proguard-android.txt
... is different to what I have on my machine? Is that file the latest version of the file that I should have?
Just to know several options:
The thing that helped me is replacing corresponding
proguard-android.txt
file with the one from this pageAnd just in case the page goes away saving its content here:
Seems that's happening to some of us. I downloaded just the folder attached in this answer and copied it to android-sdk/tools folder overwriting what's there and now it works without problems.
https://code.google.com/p/android/issues/detail?id=210012
Hmm, it looks the
tools/proguard
folder in my local copy of the Android SDK is not updated by the Android SDK Manager. I just downloaded the Android SDK afresh from here...http://developer.android.com/sdk/index.html
... and replaced the
tools/proguard
folder in that distribution over thetools/proguard
in my local copy of the Android SDK and the error's gone.Would be great if the
tools/proguard
folder was updated via the Android SDK Manager.In debug mode I set minifyEnabled to false