Manifest merger failed while adding FirebaseUI library and support libraries

后端 未结 2 1648

I am implementing authentication using google firebase. I am getting this error . If possible please someone suggest solution along with explanation so i can understand.

相关标签:
2条回答
  • 2021-01-23 12:35

    Add this line inside your application tag in the manifest

     <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version"
            tools:replace="android:value" />
    

    exactly as it shows above. This is not your integer directory it is an Android directory.

    0 讨论(0)
  • 2021-01-23 12:50

    You can find in the official doc:

    If you would like to use a newer version of one of FirebaseUI's transitive dependencies, such as Firebase, Play services, or the Android support libraries, you need to add explicit compile declarations in your build.gradle for all of FirebaseUI's dependencies at the version you want to use.

    For Auth you have to add these lines in your build.gradle:

    compile "com.android.support:design:26.1.0"
    compile 'com.android.support:appcompat-v7:26.1.0'
    compile "com.android.support:customtabs:26.1.0"
    compile "com.android.support:cardview-v7:26.1.0"
    
    0 讨论(0)
提交回复
热议问题