1
votes

i have a problem with proguard. the error is: Can't find common super class of [com/google/android/gms/location/LocationResult] (with 1 known super classes) and [com/google/android/gms/location/LocationAvailability] (with 1 known super classes)

codes of proguard-rules.pro:

-keep class com.name.ee.model.** { *; }
-keep class com.name.ee.response.** { *; }

#--------- Glide

-keep public class * implements com.bumptech.glide.module.GlideModule
-keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$** {

  **[] $VALUES;
  public *;}

#--------- OkHttp
-dontwarn okio.**
-dontwarn okhttp3.**

#--------- Calligraphy
-keep class uk.co.chrisjenx.calligraphy.* { *; }
-keep class uk.co.chrisjenx.calligraphy.*$* { *; }

#--------- DBflow
-keep class * extends com.raizlabs.android.dbflow.config.DatabaseHolder { *; }
-keep class com.raizlabs.android.dbflow.config.GeneratedDatabaseHolder
-keep class * extends com.raizlabs.android.dbflow.config.BaseDatabaseDefinition { *; }

#--------- Retrofit

-dontnote retrofit2.Platform
-dontwarn retrofit2.Platform$Java8
-keepattributes Signature
-keepattributes Exceptions

#--------- GSON
-keepattributes Signature
-keep class sun.misc.Unsafe { *; }
-keep class * implements com.google.gson.TypeAdapterFactory
-keep class * implements com.google.gson.JsonSerializer
-keep class * implements com.google.gson.JsonDeserializer

#-dontwarn android.support.v4.**
-keep class com.google.android.gms.** { *; }
-dontwarn com.google.android.gms.**


-ignorewarnings

-keep class * {public private *;}

and implementations are :

//noinspection GradleCompatible
implementation 'com.google.android.gms:play-services-maps:16.0.0'
implementation "com.google.android.gms:play-services-gcm:16.0.0"
1

1 Answers

1
votes

i think your problem must solve with updating android studio to 3.3.1