Search code examples
androidproguardandroid-sdk-tools

Proguard failing with 25.1.6 release of Android tools


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?


Solution

  • 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 the tools/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.