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

后端 未结 4 1429
闹比i
闹比i 2021-01-04 13:19

Building project and deploying app to the emulator with API level 22 or 25 goes ok, but when i try to build APK or deploy app to my real device with API level 16 i get the f

相关标签:
4条回答
  • 2021-01-04 13:52

    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'
            }
        }
    }
    
    0 讨论(0)
  • 2021-01-04 14:00

    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)

    0 讨论(0)
  • 2021-01-04 14:04

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

    0 讨论(0)
  • 2021-01-04 14:05

    Move this:

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

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

    0 讨论(0)
提交回复
热议问题