Android - 无法解析com.android.tools.build:gradle:1.5.0

时间:2016-02-14 09:39:05

标签: android android-gradle

我制作了我的项目,但是我收到了这个错误:

 Error:Gradle: A problem occurred configuring root project 'RealEstate'.
 > Could not resolve all dependencies for configuration ':classpath'.
 > Could not resolve com.android.tools.build:gradle:1.5.0.
   Required by:
     :RealEstate:unspecified
  > Could not resolve com.android.tools.build:gradle:1.5.0.
     > Could not get resource jcenter.bintray.com/com/android/tools/build/gradle/1.5.0/gradle-1.5.0.pom'.
        > Could not GET jcenter.bintray.com/com/android/tools/build/gradle/1.5.0/gradle-1.5.0.pom'.
           > Connection to http://www.somehost.org:8080 refuse

根文件夹中的build.gradle文件是:

 buildscript {
repositories {
    jcenter()
}
dependencies {
    classpath 'com.android.tools.build:gradle:1.5.0'

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
  }
 }

 allprojects {
repositories {
    jcenter()
   }
 }

我的gradle:wrapper.properties是:

 #Wed Apr 10 15:27:10 PDT 2013
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/dists
 distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip

此外,我将 gradle-1.5.0.pom 放在此目录中: C:\ Program Files \ Android \ Android Studio \ gradle \ m2repository \ com \ android \ tools \ build \ gradle \ 1.5.0

任何人都可以帮助我吗?

0 个答案:

没有答案