Manifest merger failed : Attribute application@appComponentFactory updating Firebase libraries

前端 未结 6 1029
孤街浪徒
孤街浪徒 2020-11-30 10:56

I am trying to add firebase in my project but when I implement \'com.google.firebase:firebase-messaging:19.0.0\' and \'com.google.firebase:firebase-core:1

6条回答
  •  猫巷女王i
    2020-11-30 11:09

    According to the firebase site to solve this issue:

    • Update your app to use Jetpack (AndroidX), you can do this by adding these two lines: android.useAndroidX=true and android.enableJetifier=true into file gradle.properties in the project root directory. Or you can do another method
    • Upgrade com.android.tools.build:gradle to v3.2.1 or later (in project build.gradle file)
    • Upgrade compileSdkVersion to 28 or later (in project build.gradle file)

提交回复
热议问题