大家好,我在刚刚安装的安卓工作室大黄蜂中一直收到这个错误.这是错误



找不到参数[build_7jwcrzymvpp83e30hiaoem3a3的方法android(($_run_closure2@1a6e8efc]在org.gradle.api.project.类型的根项目"我的应用程序2"上

ext {
compose_version = '1.0.1'
}
}// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '7.1.3' apply false
id 'com.android.library' version '7.1.3' apply false
id 'org.jetbrains.kotlin.android' version '1.5.21' apply false
}
task clean(type: Delete) {
delete rootProject.buildDir
}
android {
compileOptions {
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_1_8
}
compileSdk 33
buildToolsVersion '33.0.0'|
dependenciesInfo {
includeInApk true
includeInBundle true
}
ndkVersion '25.0.8775105'
}```


android {
compileOptions {
targetCompatibility JavaVersion.VERSION_1_8
sourceCompatibility JavaVersion.VERSION_1_8
}
compileSdk 33
buildToolsVersion '33.0.0'|
dependenciesInfo {
includeInApk true
includeInBundle true
}
ndkVersion '25.0.8775105'
}```

这将在应用程序级别的build.gradle文件中。我建议启动一个新项目,并在活动选择窗格中选择"撰写活动"。

删除buildToolsVersion '33.0.0'ndkVersion '25.0.8775105'

最新更新