0

在應用程序中,我遇到了Firebase SDK的問題。衝突更新Firebase SDK - 身份驗證

我嘗試使用Firebase登錄。但我有一個FirebaseError:

Projects created at console.firebase.google.com must use the new Firebase Authentication SDKs available from firebase.google.com/docs/auth

在我的build.gradle有最新認證:

編譯 'com.google.firebase:火力-AUTH:9.2.1' - 儘管這在我的應用程序中記錄到應用程序顯示此FirebaseError。

我在的build.gradle依賴(模塊:APP):

dependencies { 
    compile fileTree(dir: 'libs', include: ['*.jar']) 
    testCompile 'junit:junit:4.12' 
    compile 'com.android.support:appcompat-v7:23.1.1' 
    compile 'com.android.support:design:23.1.1' 
    compile 'com.android.support:support-v4:23.1.1' 
    compile 'com.android.support:cardview-v7:23.1.1' 

/* Firebase SDK */ 
    compile 'com.firebase:firebase-client-android:2.5.2+' 

/* Firebase UI */ 
    compile 'com.firebaseui:firebase-ui:0.2.2' 

    compile 'com.google.firebase:firebase-auth:9.2.1' 

    compile "com.google.firebase:firebase-database:9.2.1" 

/* For Google Play Services */ 

    compile 'com.google.android.gms:play-services-base:9.2.1' 
    compile 'com.google.android.gms:play-services-safetynet:9.2.1' 
    compile 'com.google.android.gms:play-services-auth:9.2.1' 

    compile 'com.google.android.gms:play-services-appindexing:9.2.1' 
} 

是否有人有一些建議,如何解決這一問題?

謝謝!

+0

看看這個。 http://stackoverflow.com/a/38015939/3585278 – Danieboy

+0

是的,我查了,但我不能刪除「firebase-client:2.5.2+」,因爲我在我的項目結構中使用它。 – gryzek

回答

0

你不能混用V2 SDK(firebase-client-android 2.5.2)和V3 SDK(你認爲它們都是「Firebase UI」)。您必須刪除V2依賴項並更新您的源以使用新類。

它實際上是一個簡單的,幾乎機械的任務。