andriod Cause: unable to find valid certification path to requested target解决

问题描述:原来一直可以正常运行的项目,突然在bulid的时候Cause: unable to find valid certification path to requested target

网上找了很多资料,基本都是说缺少认证证书。解决方式大致是两种一种是设置andriodstudio可信任证书,一种是通过浏览器获取该网址的认证证书。第一种试了没起作用,(难道是产生的原因不一样?)。第二种实现起来要复杂一些,看了评论有的也不行。

最初的解决方式:既然缺少https认证证书   我的项目错误是无法找到https://maven.google.com的认证证书,那么把https改为http就初步解决了。但是后来新的项目又出现类似的问题

 

最终我的解决方式:重置系统

 

 

你可能感兴趣的:(andriod,开发工具)