我在Windows 10中建立了这个专案(运作良好),直到格式化并安装UBUNTU 16.04
现在,当我尝试构建到导入的项目时,它给了我这个错误:
Error:No trusted certificate found
我在这里阅读了有关在gradle.wrapper.properties中将httpS更改为http的信息,但结果是相同的
distributionUrl=http\://services.gradle.org/distributions/gradle-2.2.1-all.zip
如果我尝试清洁
Error:A problem occurred configuring root project 'app'.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not download javassist.jar (org.javassist:javassist:3.20.0-GA)
> Could not get resource 'https://jcenter.bintray.com/org/javassist/javassist/3.20.0-GA/javassist-3.20.0-GA.jar'.
> Could not GET 'https://jcenter.bintray.com/org/javassist/javassist/3.20.0-GA/javassist-3.20.0-GA.jar'.
> sun.security.validator.ValidatorException: No trusted certificate found
最佳答案
找到了解决方案:我更改为OpenDNS后,是我的调制解调器的dns服务器(使用google 8.8.4.4)。