Error in adding dependency for firebase-ui-auth:2.3.0

后端 未结 3 1469
北荒
北荒 2021-01-24 12:41

I\'m facing this issue since yesterday... I am adding:

//Add Library
compile \'com.android.support:design:26.1.0\'
compile \'com.firebaseui:firebase-ui:0.2.0\'
c         


        
相关标签:
3条回答
  • 2021-01-24 13:22

    Check this link in the firebase UI readme:

    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 example if you want to use Play services/Firebase version FOO and support libraries version BAR add the following extra lines for each FirebaseUI module you're using:

    Auth:

    compile "com.google.firebase:firebase-auth:$FOO"
    compile "com.google.android.gms:play-services-auth:$FOO"
    
    compile "com.android.support:design:$BAR"
    compile "com.android.support:customtabs:$BAR"
    compile "com.android.support:cardview-v7:$BAR"
    

    Then in your case you have to use:

    compile "com.android.support:design:26.1.0"
    compile "com.android.support:customtabs:26.1.0"
    compile "com.android.support:cardview-v7:26.1.0"
    
    0 讨论(0)
  • 2021-01-24 13:22

    I follow this suggestion:

    Suggestion: add 'tools:replace="android:value"' to element at AndroidManifest.xml

    So, adding this meta-data to my manifest resolve my problem:

    <meta-data
        tools:replace="android:value"
        android:name="android.support.VERSION"
        android:value="26.1.0" />
    
    0 讨论(0)
  • 2021-01-24 13:46

    compile 'com.firebaseui:firebase-ui-auth:2.3.0'
    

    When your FirebasuUi Version is 2.3.0, your Firebase/Play Services Version must be 11.0.4

    Your Library

    //Add Library
    compile 'com.android.support:design:26.1.0' //--->Same to your buildToolVersion
    compile 'com.firebaseui:firebase-ui:0.2.0'  //--->2.3.0
    compile 'com.google.android.gms:play-services-auth:11.2.2' //--->11.0.4
    compile 'com.google.firebase:firebase-auth:11.2.2' //--->11.0.4
    

    Note

    Until now, the latest buildToolVersion is 26.0.2 .

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