为什么我收到此消息“找不到 com.google.firebase:firebase-core:16.1.0。” 一直出错?

Kau*_*hal 2 android build firebase build.gradle android-gradle-plugin

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

找不到 com.google.firebase:firebase-core:16.1.0。

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

classpath 'com.google.gms:google-services:4.0.1'
Run Code Online (Sandbox Code Playgroud)

这是我的 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'
Run Code Online (Sandbox Code Playgroud)

}

Gab*_*tti 6

找不到 com.google.firebase:firebase-core:16.1.0"

发生这种情况是因为firebase-core:16.1.0 不存在(今天)。
您可以在此处查看最新版本。目前是16.0.7

Firebase 核心 com.google.firebase:firebase-core:16.0.7

改变你的依赖:

implementation 'com.google.firebase:firebase-core:16.0.7'
Run Code Online (Sandbox Code Playgroud)