java无法获取类型为org的根项目“MyApplication3”的未知属性“Delete”。格雷德尔。应用程序编程接口。项目
Android studio 3.1.2->;新项目->;生成失败,日志中出现以下问题:
Could not get unknown property 'Delete' for root project 'MyApplication3' of type org.gradle.api.Project.
Open File
这是构建。格雷德尔:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.安卓.tools.build:gradle:3.1.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
最后三行是问题所在。默认情况下会添加它
如何解决这个问题
共 (0) 个答案