解决unable to find valid certification path to requested target

笔者发现在导入API时经常发现unable to find valid certification path to requested target这个问题,于是我找到了一个比较有效的办法

在最外层的build.gradle 中,将buildscript里的jencter()换为如下

maven { url ‘http://maven.google.com’ }
maven { url ‘http://jcenter.bintray.com’}
maven {
url ‘http://maven.aliyun.com/nexus/content/groups/public/’
}
解决unable to find valid certification path to requested target_第1张图片

这样就可以啦

你可能感兴趣的:(解决unable to find valid certification path to requested target)