构建文件“AndroidStudioProjects\MyApplication uild.gradle.kts”
请帮我解决这个问题。我下载了文件 gradle 8.0,但程序 Android studio 没有构建 gradle。为什么会发生这种情况?
检查 gradle 包装属性 并添加这个
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
您显示的是高年级 有些看起来像这样
buildscript {
ext.kotlin_version = '1.7.0'
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.0'
classpath 'com.google.gms:google-services:4.4.0'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.2'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '7.2.0' apply false
id 'com.android.library' version '7.2.0' apply false
id 'org.jetbrains.kotlin.android' version '1.6.21' apply false
id 'com.google.dagger.hilt.android' version '2.42' apply false
// id 'com.google.gms.google-services' version '4.3.14' apply false
// id 'com.google.firebase.crashlytics' version '2.9.2' apply false
}
在线同步项目也不要离线检查互联网