Proguard 6.0.3 Fails With Java.lang.arrayindexoutofboundsexception: -1
After updating to Android Studio 3.2 I can't generate signed APK unless I enforce usage of Proguard 5.3.2 in gradle with: configurations.all { resolutionStrategy { forc
Solution 1:
I had the same issue. Your fix did not work for me.
In Android Studio 3.2, desugaring is enabled by default. This appears to conflict somehow with Proguard. Turning desugaring of by adding
android.enableD8=falseandroid.enableR8=falseandroid.enableD8.desugaring=false
to my gradle.properies
file solved the issue for me. But this is no long term solution, at some point we will have to move from Proguard to R8.
Solution 2:
gradle3.2 or 3.3 has this problem, you can upgrade to 3.4 or above or downgrade to 3.0
dependencies {
classpath "com.android.tools.build:gradle:3.4.0"// NOTE: Do not place your application dependencies here; they belong// in the individual module build.gradle files
}
There may be other versions that I haven't tested You must delete .gradle and gradle folders, then sync
Post a Comment for "Proguard 6.0.3 Fails With Java.lang.arrayindexoutofboundsexception: -1"