Could not resolve all dependencies for configuration ':classpath'.

问题:

Error:Gradle: A problem occurred configuring root project 'MobileShopping'.

> Could not resolve all dependencies for configuration ':classpath'.
   > Could not resolve com.android.tools.build:gradle:1.0.0.
     Required by:
         :MobileShopping:unspecified
      > Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/1.0.0/gradle-1.0.0.pom'.

         > peer not authenticated


解决方案:

打开setting->gradle->Gradle VM Options:

-Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=8087

重启Android studio


问题:

Could not resolve all dependencies for configuration ':classpath'. ... off line

解决方案:Interllij  gradle 设置关闭off line 不要打钩

你可能感兴趣的:(Gradle)