java.util.zip.ZipException: duplicate entry: com/google/android/gms/internal/zzbq.class

前端 未结 5 1891
抹茶落季
抹茶落季 2020-12-20 21:40

I am new in Android. i am currently working in android app and when i try to run the app this error occurs.

I have researched but cant solve this error.

er

5条回答
  •  清酒与你
    2020-12-20 22:09

    Excluding com.google.android.gms from the offending package worked to build the project for me, but unfortunately the app would crash during initialization. The solution for me was to upgrade all firebase dependencies from 11.6.0 to 11.8.0, ie:

    - compile "com.google.android.gms:play-services-base:11.6.0"
    - compile "com.google.firebase:firebase-core:11.6.0"
    - compile "com.google.firebase:firebase-messaging:11.6.0"
    - compile "com.google.firebase:firebase-analytics:11.6.0"
    - compile "com.google.firebase:firebase-ads:11.6.0"
    
    + compile "com.google.android.gms:play-services-base:11.8.0"
    + compile "com.google.firebase:firebase-core:11.8.0"
    + compile "com.google.firebase:firebase-messaging:11.8.0"
    + compile "com.google.firebase:firebase-analytics:11.8.0"
    + compile "com.google.firebase:firebase-ads:11.8.0"
    

    The problem was only presenting itself when adding firebase-ads but this fixed it.

提交回复
热议问题