小编Hod*_*ori的帖子

我在 build.gradle(Project) 中找不到 buildscript

这就是我所知道的 build.gradle(Project) 。

buildscript {

    repositories {
        google()
        jcenter()
    }


    dependencies {
        classpath 'com.android.tools.build:gradle:7.0.0'
    }
}


allprojects {
    repositories {
        google()
        jcenter()
    }
}
Run Code Online (Sandbox Code Playgroud)

但我的项目的 build.gradle(Project) 就是这样。

// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
    id 'com.android.application' version '7.1.1' apply false
    id 'com.android.library' version '7.1.1' apply false
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
Run Code Online (Sandbox Code Playgroud)

我尝试将 Firebase 与 Android 链接,但 build.gradle(Project) 与我知道的文件不同。
我试图强行修改它,但它没有同步...
我如何访问顶级Gradle文件?

android gradle firebase android-studio build.gradle

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

标签 统计

android ×1

android-studio ×1

build.gradle ×1

firebase ×1

gradle ×1