小编Bab*_*ouG的帖子

错误:找不到 com.google.gms:google-services:4.3.15?

我正在尝试将 Firebase Auth 添加到我的 Android 应用程序中。当我运行该应用程序时,我收到以下错误消息:

A problem occurred configuring root project 'android'.
> Could not resolve all files for configuration ':classpath'.
   > Could not find com.google.gms.google-services:4.3.15:.
     Required by:
         project :
Run Code Online (Sandbox Code Playgroud)

我已经尝试更新 flutter、dart 和 AndroidStudio。build.gradle这是我的(根)的片段:

buildscript {
    ext.kotlin_version = '1.7.10'
    repositories {
        google()
        mavenCentral()
    }

    dependencies {
        classpath 'com.google.gms.google-services:4.3.15'
        classpath 'com.android.tools.build:gradle:7.2.0'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}

allprojects {
    repositories {
        google()
        mavenCentral()
    }
}

rootProject.buildDir = '../build'
subprojects {
    project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
    project.evaluationDependsOn(':app')
}

tasks.register("clean", Delete) …
Run Code Online (Sandbox Code Playgroud)

android gradle dart android-studio flutter

10
推荐指数
1
解决办法
1万
查看次数

标签 统计

android ×1

android-studio ×1

dart ×1

flutter ×1

gradle ×1