Exception while processing task java.io.IOException: java.lang.IllegalArgumentException: Stack size becomes negative after instruction [23] invokestatic #46 in [com/google/android/gms/internal/ads/zzap.zzf(Ljava/lang/String;)J]
After updating Google Play Services to 15.0.1(latest) from 12.0.1 my release builds stop working.I come across the above Proguard error after updated the gms library gradle versions as follows:
1 // compile 'com.google.android.gms:play-services-ads:12.0.1'
compile 'com.google.android.gms:play-services-ads:15.0.1'
2 // compile 'com.google.android.gms:play-services-analytics:12.0.1'
compile 'com.google.android.gms:play-services-analytics:16.0.1'
3 // compile 'com.google.android.gms:play-services-auth:12.0.1'
compile 'com.google.android.gms:play-services-auth:15.0.1'
4 // compile 'com.google.android.gms:play-services-gcm:12.0.1'
compile 'com.google.android.gms:play-services-gcm:15.0.1'
compile 'com.google.android.gms:play-services-ads:15.0.1'
2 // compile 'com.google.android.gms:play-services-analytics:12.0.1'
compile 'com.google.android.gms:play-services-analytics:16.0.1'
3 // compile 'com.google.android.gms:play-services-auth:12.0.1'
compile 'com.google.android.gms:play-services-auth:15.0.1'
4 // compile 'com.google.android.gms:play-services-gcm:12.0.1'
compile 'com.google.android.gms:play-services-gcm:15.0.1'
Solution for above error while generating signed APK is to Add following to your proguard-rules.pro
-keep class com.google.android.gms.internal.** { *; }