android Studio 出现:Unable to resolve dependency for ':app@debug/compileClasspath'
Unable to resolve dependency for ':app@debug/compileClasspath'xxx
等等,导致我的所有的依赖都拿不下来
我去,这不是要我的命吗
然后又是一番折腾,但是好在有贵人相助,wanAndroid群里一位大佬发了一个链接,说让我按照这个链接里的方法试试,
说了那么多,都是抛砖引玉
https://www.jianshu.com/p/0d0ebb86dd17?utm_campaign=haruki&utm_content=note&utm_medium=reader_share&utm_source=qq
嗯,就这样,这就是大佬的解决办法。
主要是就是使用了 proxy
systemProp.https.proxyHost=mirrors.neusoft.edu.cn systemProp.http.proxyPort=80
这个代理导致,所以在C盘:用户/用户名/目录下找到.gradle文件夹里的gradle.properties 文件注释掉prox使用即可
## For more details on how to configure your build environment visit # http://www.gradle.org/docs/current/userguide/build_environment.html # # Specifies the JVM arguments used for the daemon process. # The setting is particularly useful for tweaking memory settings. # Default value: -Xmx1024m -XX:MaxPermSize=256m # org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 # # When configured, Gradle will run in incubating parallel mode. # This option should only be used with decoupled projects. More details, visit # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects # org.gradle.parallel=true #Mon Dec 10 12:56:38 CST 2018 #systemProp.http.proxyHost=mirrors.neusoft.edu.cn #systemProp.https.proxyPort=80
如图最下面两行被注释了,你按照这个试试,就行了
OK!大功告成
来自:https://www.cnblogs.com/fengfenghuifei/p/10098054.html
耐得住寂寞,才能登得顶
Gitee码云:https://gitee.com/lyc96/projects