gradle settings: com.google.android.gms.internal.zzbgl not found

后端 未结 3 1278
广开言路
广开言路 2021-01-16 17:34

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

相关标签:
3条回答
  • 2021-01-16 17:53

    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

    0 讨论(0)
  • 2021-01-16 17:59

    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);}
    
    0 讨论(0)
  • 2021-01-16 18:18

    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)

    0 讨论(0)
提交回复
热议问题