gradle出现编译问题Error:Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.

1.遇到如下错误:

Error:Could not resolve all dependencies for configuration ‘:app:debugRuntimeClasspath’.

Could not determine artifacts for org.xutils:xutils:3.5.0

Could not get resource ‘https://jcenter.bintray.com/org/xutils/xutils/3.5.0/xutils-3.5.0.aar’.

Could not HEAD ‘https://jcenter.bintray.com/org/xutils/xutils/3.5.0/xutils-3.5.0.aar’.

Remote host closed connection during handshake

SSL peer shut down incorrectly

看着这个错误,好像是 ‘:app:debugRuntimeClasspath’.路径不对,导致app build.gradle下所有的.aar包都解析错误,解决办法是如下图,修改service directory path的路径,然后就编译成功了,具体为啥?

《gradle出现编译问题Error:Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.》 Service directory path:要注意,android studio 为什么编译也不需要导包呢?.gradle->caches->modules-2->files-2.1 里面就是一些jar包。
《gradle出现编译问题Error:Could not resolve all dependencies for configuration ':app:debugRuntimeClasspath'.》

    原文作者:ForeverFaith
    原文地址: https://www.jianshu.com/p/f8d8e9635373
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞