Firebase 未连接,并且显示错误,例如无法解析 Android 应用程序模块的 Gradle 配置。解决 gradle 构建问题和/或重新同步。
有些人说要删除 jcenter() ..但是在我的应用程序 gradle 中我没有看到任何所有项目存储库这是我的应用程序built.gradle ...
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:7.0.0"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}`
Run Code Online (Sandbox Code Playgroud)