解决办法:删除掉 ~/.gradle/wrapper/dists/ 下的文件夹,重新运行即可
参考内容:
The solution that worked for me
I had the luxury of comparing differences with working projects. That is how I discovered the error was due to the distributionUrl
property
in the gradle/wrapper/gradle-wrapper.properties
file.
In the failing project this was set like distributionUrl=http\://services.gradle.org/distributions/gradle-1.10-all.zip
.
While in the working project this was distributionUrl=http\://services.gradle.org/distributions/gradle-1.11-all.zip
.
Note the difference in the version.
Updating this distributionUrl in gradle-wrapper.properties to this 1.11 link solved the issue for me.
作者:chaoyu168 发表于2017/3/8 10:57:41 原文链接
阅读:62 评论:0 查看评论