Android Multiple dex files define Lcom/google/android/gms/common/api/zza

微笑、不失礼 提交于 2019-11-30 18:31:29

Move this:

apply plugin: 'com.google.gms.google-services'

to the bottom of your app/build.gradle file.

Although I had the same error but the above solution did not work for me. I managed to solve the error by downgrading my firebase-ui library version from 2.0.0 to 1.2.0 and added the following to Project level build.gradle file:

allprojects {
    repositories {
        jcenter()

        // Add the following
        maven {
            url 'https://maven.fabric.io/public'
        }
    }
}

for me, I just update firebase library to the newest version and it just worked

This probably doesn't apply to the original question, but in case it helps someone else. I ran into this error with my ionic v1 project. I don't use firebase, but I did fix it with this answer (easy fix for me - standardize all google service versions to be the same in android/project.properties)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!