我在Android Studio上添加volley
时遇到问题。
在Android Studio上添加volley
后,当我同步gradle项目时,它说:
Error:Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.
gradle sync failed: Connection timed out: connect. If you are behind an HTTP proxy, please configure the proxy settings either in IDE or Gradle.
Consult IDE log for more details (Help | Show Log)
我尝试了以下方法:gradle.properties
systemProp.http.proxyHost=www.somehost.org
systemProp.http.proxyPort=8080
systemProp.http.proxyUser=userid
systemProp.http.proxyPassword=password
systemProp.http.nonProxyHosts=*.nonproxyrepos.com|localhost
但它不起作用。
答案 0 :(得分:0)
尝试使缓存无效并重新启动。
转到文件 - >使缓存无效/重新启动 - >选择“无效并重新启动”。
答案 1 :(得分:0)
gradle.properties