导入的项目-Gradle Sync错误,未找到受信任的证书 [英] imported project - Gradle Sync error no trusted certificate found

查看:223
本文介绍了导入的项目-Gradle Sync错误,未找到受信任的证书的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows 10中构建了这个项目(运行正常),直到我格式化并安装了UBUNTU 16.04

i was building this project in windows 10 (was working perfectly), until i formated and installed UBUNTU 16.04

现在,当我尝试构建导入的项目时,它给了我这个错误:

now when i try to build to imported project, it give me this error:

Error:No trusted certificate found

我在这里阅读了有关在gradle.wrapper.properties中将httpS更改为http的信息,但结果是相同的

i read here about changing the httpS to http at the gradle.wrapper.properties but the result was the same

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

推荐答案

我遇到了同样的问题.

切换到openjdk-8- *解决了该问题.

Switch to openjdk-8-* resolves the issue.

sudo apt-get remove openjdk-9-jre-headless
sudo apt-get install openjdk-8-jre-headless

这篇关于导入的项目-Gradle Sync错误,未找到受信任的证书的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆