gpt4 book ai didi

android - 为什么我总是收到此 "Could not find com.google.firebase:firebase-core:16.1.0."错误?

转载 作者:行者123 更新时间:2023-12-03 08:56:11 25 4
gpt4 key购买 nike

我真的厌倦了这些愚蠢的 android studio 错误,问题是我已经包含了 implementation com.google.firebase:firebase-core:16.1.0我的依赖build.gradle文件,但仍然收到错误:::

Could not find com.google.firebase:firebase-core:16.1.0.

此外,如果我尝试将其从 16.1.0 更改为 16.0.1,错误仍然存​​在。如何解决此问题 我已经构建了几乎 80% 的应用程序,现在当我刚刚创建新 Activity 时,它显示此错误,我也删除了该 Activity ,但问题仍然存在。解决这个问题的方法是什么?提前致谢!!

classpath 'com.google.gms:google-services:4.0.1'

这是我的 Gradle 文件:

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.github.ittianyu:BottomNavigationViewEx:2.0.2'
implementation 'me.anwarshahriar:calligrapher:1.0'
implementation 'com.firebaseui:firebase-ui-database:4.3.1'
implementation 'com.google.firebase:firebase-database:16.0.1'
implementation 'com.google.firebase:firebase-auth:16.1.0'
implementation 'com.google.firebase:firebase-core:16.1.0'
implementation 'com.squareup.picasso:picasso:2.5.2'

}

最佳答案

Could not find com.google.firebase:firebase-core:16.1.0"

发生这种情况是因为 firebase-core:16.1.0 不存在(今天)。
您可以查看latest version这里。目前是16.0.7

Firebase Core com.google.firebase:firebase-core:16.0.7

更改您的依赖项:

implementation 'com.google.firebase:firebase-core:16.0.7'

关于android - 为什么我总是收到此 "Could not find com.google.firebase:firebase-core:16.1.0."错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55164693/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com