1

I have this error at android:

Execution failed for task ':app:transformClassesWithAndroidGradleClassShrinkerForDebug'.

ProGuard configuration parser error: C:\Users\user.gradle\caches\transforms-1\files-1.1\play-services-base-11.8.0.aar\6c960bd35f12660f\proguard.txt line 3:88 no viable alternative at input ''

This occurs when using minifyEnabled true and shrinkResources true

I try keeping same files in proguard-rules but it doesn't work

-keep public class com.google.android.gms.* { public *; }

-dontwarn com.google.android.gms.**

-libraryjars /libs/libGoogleAnalytics.jar

-keep class com.google.android.apps.analytics.**{ *; }

Thanks!!

Mehdi Jahed Manesh
  • 2,228
  • 2
  • 17
  • 34
claudio sm
  • 13
  • 4

1 Answers1

0

You have to add configuration to turn on ProGuard. Doing so will at least work.

buildTypes {
        release {
            debuggable false
            minifyEnabled true
            useProguard true
            ...
        }
        debug {
            debuggable true
            minifyEnabled true
            useProguard true
            ...
        }
    }
MαπμQμαπkγVπ.0
  • 5,887
  • 1
  • 27
  • 65