Could not resolve all dependencies for configuration ':classpath'.
2015-04-14 16:59
931 查看
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
google了一堆答案都没用,最后原来是被墙的原因,解决如下
打开setting->gradle->Gradle VM Options:
-Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=8087
重启Android studio
另外在普通的java类里使用Android的库是不行的
> 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
google了一堆答案都没用,最后原来是被墙的原因,解决如下
打开setting->gradle->Gradle VM Options:
-Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=8087
重启Android studio
另外在普通的java类里使用Android的库是不行的
相关文章推荐
- Could not resolve all dependencies for configuration ':classpath'.
- Error:Could not resolve all dependencies for configuration ':app:prodDebugCompileClasspath'. Cannot
- Could not resolve all files for configuration ':classpath'.Could not find com.android.tools.
- Could not resolve all files for configuration ':classpath'.Could not find com.android.tools.
- Could not resolve all dependencies for configuration ':app:retrolambdaConfi
- databus编译:Could not resolve all dependencies for configuration ':databus2-relay:databus2-event-producer-mock:compile
- ionic 安装cordova-plugin-crosswalk-webview,报Could not resolve all dependencies for configuration ':_ar
- Could not resolve SDK path for 'macosx10.8' 的解决
- Could not resolve all dependencies for configuration ':app:_debugApk'
- 解决ionic编译android支持问题> Could not resolve all dependencies for configuration ':_debugCompile'. > Co
- android studio中出现gradle编译失败: Could not resolve all dependencies for configuration ':app:_debugApkCop
- Could not resolve all dependencies for configuration
- gradle错误“Could not resolve all dependencies for configuration”
- Could not resolve all dependencies for configuration ':XXX:_debugCompile'
- Could not resolve all dependencies for configuration ':_armv7DebugApkCopy'.
- QT解决could not resolve sdk path for 'macosx10.8'
- 【已解决】Could not resolve all dependencies for configuration ':app:_prodDebugApkCopy'.
- 【已解决】could not resolve all dependencies for configuration ':claapath'
- Could not resolve all dependencies for configuration ':app:_googleplayDebugApkCopy'.
- 升级AndroidStudio3.0 Unable to resolve dependency for ':app@betaUnitTest/compileClasspath': Could not