我正尝试使用gradle构建我的项目。 我是一个代理之后,我更新了这个文件gradle.properties,我添加了这些行Gradle,无法通过代理访问在线存储库
systemProp.proxySet=true
systemProp.http.proxyHost=http://cache.ha.opari.com
systemProp.http.proxyPort=3328
systemProp.http.nonProxyHosts=*.nonproxyrepos.com|localhost
systemProp.https.proxyHost=http://cache.ha.opari.com
systemProp.https.proxyPort=3328
systemProp.https.nonProxyHosts=*.nonproxyrepos.com|localhost
我仍然有同样的问题,当我与gradle这个
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':icore:compileJava'.
> Could not resolve all dependencies for configuration ':icore:compileClasspath'.
> Could not resolve colt:colt:1.2.0.
Required by:
project :icore
> Could not resolve colt:colt:1.2.0.
> Could not get resource 'https://repo1.maven.org/maven2/colt/colt/1.2.0/colt-1.2.0.pom'.
> Could not GET 'https://repo1.maven.org/maven2/colt/colt/1.2.0/colt-1.2.0.pom'.
> http://cache.ha.opari.com
我试过stacktrace,stil结果相同 – Ahmed
当然结果相同,但没有更多信息?没有堆栈跟踪? o_O然后使用'-i'或者如果仍然没有足够的信息使用'-d'。 – Vampire
解决:) 我把代理地址没有http和https 它现在工作O.o – Ahmed