Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath':以及:android studio 中的proxy

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_38998213/article/details/83786536

Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not resolve com.android.support:appcompat-v7:26.1.0. Open File Show Details

找不到jar包问题

首先确定 不要勾选 offline work:这样的目的是保证联网,他的作用实在以后在没有jar包更新的情况下 ,勾选上这样的话项目运行的速度会变快:原理就是不在联网更新jar包,这种方式与断网后编译是一样的道理。

然后

 Unknown host 'd29vzk4ow07wi7.cloudfront.net'. You may need to adjust the proxy settings in Gradle. 

这样的错误需要添加仓库控制。

找到项目的gradle,

mavenCentral();jcenter()

 再说一下:

enable embedded maven repository:启用嵌入式Maven知识库

有的时候你的勾选上

android  studio 中的proxy:

一般不需要代理,当你使用翻墙软件的时候需要在这里设置。不过现在的shadowsocks很好,有全局翻墙和局部翻墙模式。


 

猜你喜欢

转载自blog.csdn.net/qq_38998213/article/details/83786536