Android Studio 证书问题 unable to find valid certification path to requested target

背景

使用as 构建项目的时候 莫名其妙 报证书问题 导致项目不能正常编译 相关sdk 无法下载

问题描述

unable to find valid certification path to requested target

解决方案

1.首先查看gradle.properties 下是否配置了代理 如果有注释掉或者去掉

2.去掉注释后 ,可以尝试再次编译 ,如果还是不行,打开 Android Studio->File->Settings->Android Studio 证书问题 unable to find valid certification path to requested target

3.找到相关设置后(如果不好找,可直接搜索),按下图 点击箭头按钮在弹出框里输入报错连接  点击ok  再重新编译即可

Android Studio 证书问题 unable to find valid certification path to requested targetAndroid Studio 证书问题 unable to find valid certification path to requested target