错误:(15,0)在根项目‘ud839_Miwok- build_41ptob9czd5ucux9ngzednsn4$_run_closure1@100eeb5 -build_41ptob9czd5ucux9ngzednsn4$_run_closure1@100eeb5’上找不到参数代码的android()方法。打开文件
我还试着用互联网连接重建gradle,
下面是我的build.gradle代码
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
android {
buildToolsVersion "28.0.3"
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
发布于 2018-10-10 06:52:14
您的build.gradle
文件属于项目级别。请将以下行移动到模块 build.gradle
文件。
android {
buildToolsVersion "28.0.3"
}
https://stackoverflow.com/questions/52730293
复制相似问题