println "-------------------------------------------------"
println "Build ResideMenu with:\n\tbuildToolsVersion = " +
System.properties['buildToolsVersion']
println "\tandroidGradlePluginVersion = " + System.properties['androidGradlePluginVersion']
println "\tfile.encoding = " + System.properties['file.encoding']
println "\tCharset.defaultCharset() = " + java.nio.charset.Charset.defaultCharset().toString()
println "-------------------------------------------------\n"
ext {
compileSdkVersion = 19
buildToolsVersion = System.properties['buildToolsVersion']
minSdkVersion = 9
targetSdkVersion = 14
}
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0' + System.properties['androidGradlePluginVersion']
}
}
allprojects {
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
}
}
答案 0 :(得分:0)
不确定您尝试添加到依赖项的末尾但它应该如下所示:
dependencies {
classpath 'com.android.tools.build:gradle:1.3.0'
}