Multiple dex files define Lcom/google/android/gms/internal/zzau

前端 未结 14 1258
[愿得一人]
[愿得一人] 2020-11-29 10:55

I get the error com.android.dex.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzau; when i run my app The gradle files are

ap

14条回答
  •  时光说笑
    2020-11-29 11:36

    I was having this issue and none of the solutions worked. What worked for me was adding this plugin

     cordova plugin add cordova-android-play-services-gradle-release --save
    

    and then in both /platforms/android/cordova-plugin-fcm/ and /platforms/android/cordova-plugin-open/ replace

    apply plugin: com.google.gms.googleservices.GoogleServicesPlugin
    

    with:

    ext.postBuildExtras = {
      apply plugin: com.google.gms.googleservices.GoogleServicesPlugin
    }
    

提交回复
热议问题