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

前端 未结 14 1248
[愿得一人]
[愿得一人] 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:34

    Had the same issue while integrating firebase. For my case, it was caused by version mismatch.

    on the app gradle, i had:

    ext {
        PLAY_SERVICES_VERSION = '10.2.0'
    }
    dependencies {
        compile "com.google.android.gms:play-services-maps:$PLAY_SERVICES_VERSION"
        compile "com.google.android.gms:play-services-location:$PLAY_SERVICES_VERSION"
        compile "com.google.android.gms:play-services-places:$PLAY_SERVICES_VERSION"
        compile 'com.google.firebase:firebase-database:10.0.1'
    }
    

    the firebase dependancy was added through the integrated firebase plugin in Android studio. When i matched the versions, it worked.

提交回复
热议问题