I have read similar Q/A here and here about this problem. All solution was to use latest plugins. The question is outdated and I need new configuration using latest versions
Don't use the combined play-services target. It brings in dozens of libraries, bloating your application. Instead, specify only the specific Google Play services APIs your app uses.
As quoted from official docs, you should not use combined play services library. Instead try using specific libraries you need and try updating the specific library to 15.0.1
you need to exclude these classes from Proguard obfuscation:
#-dontnote com.google.android.gms.internal.**
-keep,includedescriptorclasses class com.google.android.gms.** { *; }
-keep,includedescriptorclasses class com.google.android.gms.internal.** { *; }
-keep class com.google.android.gms.internal.** {com.google.android.gms.internal.** initialize(android.content.Context);}
We need be specific to the things that you are using in your app for example if you are using location services instead of using it like this "implementation 'com.google.android.gms:play-services:17.0.0'" use it like this "implementation 'com.google.android.gms:play-services-location:17.0.0'" gradle file (app)