按教程建了个空的工程弄了一下,发现还有奇怪的网络问题:
org.gradle.internal.resource.transport.http.HttpRequestException: Could not HEAD '
https://maven.aliyun.com/repository/google/com/android/support/constraint/constraint-layout/1.1.3/constraint-layout-1.1.3.pom'. at org.gradle.internal.resource.transport.http.HttpClientHelper.performRequest(HttpClientHelper.java:96)
at org.gradle.internal.resource.transport.http.HttpClientHelper.performRawHead(HttpClientHelper.java:72)
at org.gradle.internal.resource.transport.http.HttpClientHelper.performHead(HttpClientHelper.java:76)
...
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:397)
at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:302)
build.gradle内容是:
buildscript {
repositories {
maven{ url "https://maven.aliyun.com/repository/google" }
maven{ url "https://maven.aliyun.com/repository/gradle-plugin" }
maven{ url "https://maven.aliyun.com/repository/public" }
//maven{ url "https://maven.aliyun.com/repository/jcenter" }
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.2.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
maven{ url "https://maven.aliyun.com/repository/google" }
maven{ url "https://maven.aliyun.com/repository/gradle-plugin" }
maven{ url "https://maven.aliyun.com/repository/public" }
//maven{ url "https://maven.aliyun.com/repository/jcenter" }
google()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
全部删了gradle 重跑也是一样的错误,手动打开pom的下载link的话,没有任何问题。
不知道啥原因了。。。
【 在 lcsendmail (lcsendmail) 的大作中提到: 】
: 重新上传了图片,仅新手参考。
--
FROM 1.119.140.*