android Gradle同步错误(匹配版本)

时间:2015-10-12 15:50:11

标签: java android gradle

嘿家伙我两天后得到这个gradle同步错误:
错误:找不到与com.android.tools.build:gradle:1.3.01.0.+匹配的任何版本。
 这是gradle文件:

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"
}
  }

1 个答案:

答案 0 :(得分:0)

不确定您尝试添加到依赖项的末尾但它应该如下所示:

dependencies {
    classpath 'com.android.tools.build:gradle:1.3.0'
}