我安装了Android Studio 4.1,但出现了“build fail”错误。
PKIX路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException: 无法找到所请求目标的有效认证路径。
我已经尝试更改Gradle版本和Gradle插件版本,还有Java(8和11),但都没有成功。
由于字符限制为30000个字符,因此我在Google文档中完整地发布了它。
详细错误信息请参考:谷歌文档中的完整错误信息。
PKIX路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException: 无法找到所请求目标的有效认证路径。
我已经尝试更改Gradle版本和Gradle插件版本,还有Java(8和11),但都没有成功。
由于字符限制为30000个字符,因此我在Google文档中完整地发布了它。
详细错误信息请参考:谷歌文档中的完整错误信息。
A problem occurred configuring root project 'First'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not resolve com.google.flatbuffers:flatbuffers-java:1.12.0.
Required by:
project : > com.android.tools.build:gradle:4.2.0-alpha14
> Could not resolve com.google.flatbuffers:flatbuffers-java:1.12.0.
> Could not get resource 'https://jcenter.bintray.com/com/google/flatbuffers/flatbuffers-java/1.12.0/flatbuffers-java-1.12.0.pom'.
> Could not GET 'https://jcenter.bintray.com/com/google/flatbuffers/flatbuffers-java/1.12.0/flatbuffers-java-1.12.0.pom'.
> PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not resolve org.tensorflow:tensorflow-lite-metadata:0.1.0-rc2.
Required by:
project : > com.android.tools.build:gradle:4.2.0-alpha14
> Could not resolve org.tensorflow:tensorflow-lite-metadata:0.1.0-rc2.
> Could not get resource 'https://jcenter.bintray.com/org/tensorflow/tensorflow-lite-metadata/0.1.0-rc2/tensorflow-lite-metadata-0.1.0-rc2.pom'.
> Could not GET 'https://jcenter.bintray.com/org/tensorflow/tensorflow-lite-metadata/0.1.0-rc2/tensorflow-lite-metadata-0.1.0-rc2.pom'.
> PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
> Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.10.
Required by:
project : > com.android.tools.build:gradle:4.2.0-alpha14
project : > com.android.tools.build:gradle:4.2.0-alpha14 > com.android.tools.build:builder:4.2.0-alpha14
project : > com.android.tools.build:gradle:4.2.0-alpha14 > com.android.tools.build:aaptcompiler:4.2.0-alpha14
project : > com.android.tools.build:gradle:4.2.0-alpha14 > com.android.tools.lint:lint-gradle-api:27.2.0-alpha14
project : > com.android.tools.build:gradle:4.2.0-alpha14 > com.android.tools.build:gradle-api:4.2.0-alpha14
project : > com.android.tools.build:gradle:4.2.0-alpha14 > androidx.databinding:databinding-compiler-common:4.2.0-alpha14
project : > com.android.tools.build:gradle:4.2.0-alpha14 > com.android.tools.build:builder:4.2.0-alpha14 > com.android.tools.build:builder-model:4.2.0-alpha14
project : > com.android.tools.build:gradle:4.2.0-alpha14 > com.android.tools.build:builder:4.2.0-alpha14 > com.android.tools:sdk-common:27.2.0-alpha14
project : > com.android.tools.build:gradle:4.2.0-alpha14 > com.android.tools.build:builder:4.2.0-alpha14 > com.android.tools:common:27.2.0-alpha14
project : > com.android.tools.build:gradle:4.2.0-alpha14 > com.android.tools.build:builder:4.2.0-alpha14 > com.android.tools.build:manifest-merger:27.2.0-alpha14
project : > com.android.tools.build:gradle:4.2.0-alpha14 > com.android.tools.build:builder:4.2.0-alpha14 > com.android.tools.analytics-library:tracker:27.2.0-alpha14
project : > com.android.tools.build:gradle:4.2.0-alpha14 > com.android.tools.lint:lint-gradle-api:27.2.0-alpha14 > com.android.tools.lint:lint-model:27.2.0-alpha14
project : > com.android.tools.build:gradle:4.2.0-alpha14 > com.android.tools.build:builder:4.2.0-alpha14 > com.android.tools:sdklib:27.2.0-alpha14 > com.android.tools:repository:27.2.0-alpha14
project : > com.android.tools.build:gradle:4.2.0-alpha14 > com.android.tools.build:builder:4.2.0-alpha14 > com.android.tools:sdk-common:27.2.0-alpha14 > com.android.tools.analytics-library:shared:27.2.0-alpha14
> Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.4.10.
> Could not get resource 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4.10/kotlin-stdlib-jdk8-1.4.10.pom'.
> Could not GET 'https://jcenter.bintray.com/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.4.10/kotlin-stdlib-jdk8-1.4.10.pom'.
> PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target