// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript [poiu{
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
答案 0 :(得分:1)
buildscript **[poiu**{
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
注意包含在*中的代码 - 代码应该是纯粹的buildcript而没有[poui。
至于如何发生这种情况;它可能是复制粘贴错误(粘贴在错误的位置)或者可能是意外的代码编写。重点是解决它。 Gradle构建错误并不详细,IDE不会像java(或C ++等)编译器和IDE那样显示错误。