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

Why I am getting this "Could not find com.google.firebase:firebase-core:16.1.0." error all the time?

我真的受够了这些愚蠢的 android 工作室错误,问题是我在我的 build.gradle 文件中包含了 implementation com.google.firebase:firebase-core:16.1.0 依赖项,但仍然收到如下错误:::

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'