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

后端 未结 3 1471
北荒
北荒 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"
    

提交回复
热议问题