Getting the error “duplicate entry: com/google/android/gms/internal/zzble.class” when trying to add a package

前端 未结 6 1106
囚心锁ツ
囚心锁ツ 2020-12-16 13:31

I\'m trying to add the react-native-firestack package to my app. But it keeps giving the following error :

:app:mergeDebugResources UP-TO-DATE
:         


        
6条回答
  •  余生分开走
    2020-12-16 13:51

    Make sure you use the same version in all your google play services libs: For example :

         compile "com.google.firebase:firebase-core:$project.ext.googlePlayServicesVersion"
            compile "com.google.firebase:firebase-auth:$project.ext.googlePlayServicesVersion"
            compile "com.google.firebase:firebase-database:$project.ext.googlePlayServicesVersion"
    
        project.ext {
            googlePlayServicesVersion = '10.2.0'
    }
    

提交回复
热议问题