卡在Gradle上:在Android Studio中下载maven-metadata.xml [英] stuck on Gradle: Download maven-metadata.xml in android studio
问题描述
添加截击依赖后,按同步.我取消了同步依赖项,之后重新打开项目时,遇到了这种情况,无法构建项目.我还单击清理项目以及无效的缓存和重新启动按钮.但是它不能改变.我该如何解决?
After adding volley dependency and press sync. I canceled syncing the dependency and after that when I reopen the project I get this stuck to build the project. I also click on clean the project and invalid cache and restart buttons. but It can not be changed. How can I fix it?
推荐答案
我已通过Android Studio设置对话框启用了https代理.当我需要在另一个网络上使用它时,我无法通过相同的设置对话框将其禁用.
I had enabled https proxy, through the Android Studio settings dialog. And when I needed to use it on another network, I was not able to disable it through the same settings dialog.
因此,我直接在Global Gradle Properties文件(< USER_HOME> \.gradle \ gradle.properties)中删除了代理配置行,而我的问题得到了解决.
So, I removed the proxy configuration lines directly in the Global Gradle Properties file (<USER_HOME>\.gradle\gradle.properties) and my problem was solved.
gradle.properties
...
# systemProp.http.proxyHost=
# systemProp.http.proxyPort=80
# systemProp.https.proxyHost=
# systemProp.https.proxyPort=80
这篇关于卡在Gradle上:在Android Studio中下载maven-metadata.xml的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!