Cause: unable to find valid certification path to requested target怎么处理
Posted Yawn,
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Cause: unable to find valid certification path to requested target怎么处理相关的知识,希望对你有一定的参考价值。
有时候,刚刚下载安装android studio会出现以下报错:
Cause: unable to find valid certification path to requested target
这是由于默认配置的源被墙了,导致部分资源不能访问报错
把以上红框标红的值替换为以下:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }
}
dependencies {
classpath "com.android.tools.build:gradle:4.0.1"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
maven { url 'http://maven.aliyun.com/nexus/content/repositories/gradle-plugin' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
以上是关于Cause: unable to find valid certification path to requested target怎么处理的主要内容,如果未能解决你的问题,请参考以下文章
Android Studio | Windows ERROR: Cause: unable to find valid certification path to requested target
error: Unable to find vcvarsall.bat
Unable to find a @SpringBootConfiguration
IllegalStateException: Unable to find a @SpringBootConfiguration