[英]Failed to resolve: firebase-auth-15.0.0 error when trying to add Firebase authentication [duplicate]
這個問題已經在這里有了答案:
我想將我的Android Studio應用連接到Firebase,但出現此錯誤:
無法解決:firebase-auth-15.0.0
這里有什么問題嗎?
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.google.firebase:firebase-auth:16.0.1:15.0.0'
}
我嘗試清理項目並再次運行。 它沒有改變。
我嘗試移除
implementation 'com.google.firebase:firebase-auth:16.0.1:15.0.0'
並將其更改為:
implementation 'com.google.firebase:firebase-auth:16.0.1'
implementation 'com.google.firebase:firebase-auth:16.0.2'
implementation 'com.google.firebase:firebase-auth:16.0.3'
分別使用三個選項,錯誤消失了,但是Firebase依賴項沒有建立。
嘗試添加它而不是使用較低版本。
implementation 'com.google.firebase:firebase-auth:16.0.5'
有關更多信息,請按照以下步驟操作: https : //firebase.google.com/support/guides/firebase-android
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.