Manifest merger failed : Attribute application@appComponentFactory updating Firebase libraries

前端 未结 6 1004
孤街浪徒
孤街浪徒 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条回答
  •  时光取名叫无心
    2020-11-30 11:08

    With new release, libraries are migrated from the Android Support Libraries to the Jetpack (AndroidX) Libraries.

    The updated libraries will not work unless you make the following changes in your app:

    • Upgrade com.android.tools.build:gradle to v3.2.1 or later.

    • Upgrade compileSdkVersion to 28 or later.

    • Update your app to use Jetpack (AndroidX); follow the instructions in Migrating to AndroidX.

    Method-1 :

    add this two in your gradle.properties File, without updating anything

    android.useAndroidX=true
    android.enableJetifier=true
    

    Method-2

    if Method-1 doesn't solve your problem do one thing if you are using android studio version 3.2 or higher go to Refactor>Migrate to AndroidX...

提交回复
热议问题