Android: Adding Firebase Messaging - Menifest merger failed

后端 未结 4 1573
走了就别回头了
走了就别回头了 2020-12-02 01:54

I added this to my project:

implementation \'com.google.firebase:firebase-messaging:19.0.0\'

and result:

ERROR: Manifest me         


        
4条回答
  •  甜味超标
    2020-12-02 02:49

    This Issue occur due to support and andoidx library both present.

    Check Firebase Release Note.

    This release is a MAJOR version update and includes breaking changes. With this 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.

    If you have used support version in your gradle, than down firebase version to 18.0.0. Otherwise you need to migrate to androidx.

提交回复
热议问题