Reputation: 2733
Each of these lines in the Proguard file
-keep class android.webkit.** { *; }
-keep class com.facebook.ads.internal.** { *; }
-keep class com.google.android.gms.common.GooglePlayServicesUtil {*;}
-keep class com.google.android.gms.ads.identifier.AdvertisingIdClient$Info {*;}
produces an Android Shrinker error:
Unresolved class name / unresolved reference in Shrinker Config file
How can these errors be fixed?
(I'm using Android Api 29 and AndroidStudio 4.0.)
Edit: When I replace the '**' wildcard by just '*', the first two error messages are gone. Also, when the '$' is replaced by a dot, the subclass AdvertisingIdClient$Info is found.
Maybe it is a bug in Android Shrinker.
Upvotes: 12
Views: 3804
Reputation: 5434
This is a bug that came with Android Studio 4.0 : https://issuetracker.google.com/issues/153616200
It hasn't been resolved yet, but you can temporarily remove the warning by adding
#noinspection ShrinkerUnresolvedReference
at the beginning of your Proguard file.
Upvotes: 20