unable to resolve dependency for app@。。。解决方法

最近把android studio升级到了3.2,出了一堆问题,主要就是无法更新无法下载之类的。

包括出现的:

unable to resolve dependency for app@。。。
Open File
Show Detail

由于已经解决无法复现。
解决方法:
打开C:/Users/(用户名)/.gradle/gradle.properties
把代理的配置注释掉,例如:

## 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
#Sat Sep 29 23:37:12 CST 2018
#systemProp.http.proxyHost=mirrors.neusoft.edu.cn
#systemProp.https.proxyPort=80
#systemProp.https.proxyHost=mirrors.neusoft.edu.cn
#systemProp.http.proxyPort=80

然后重启studio,Build–>Make Project一下,则会自动下载该下载的东西。

附上参考的博客链接:https://blog.csdn.net/csdnfengli/article/details/80695769

发布了62 篇原创文章 · 获赞 106 · 访问量 21万+

猜你喜欢

转载自blog.csdn.net/lang523493505/article/details/82914253