我得到的错误是:
A problem occurred configuring root project 'NaamaSmarane'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not resolve org.jetbrains.trove4j:trove4j:20160824.
Required by:
project : > com.android.tools.build:gradle:4.1.1 > com.android.tools.build:builder:4.1.1 > com.android.tools:sdk-common:27.1.1
> Could not resolve org.jetbrains.trove4j:trove4j:20160824.
> Could not get resource 'https://jcenter.bintray.com/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom'.
> Could not GET 'https://jcenter.bintray.com/org/jetbrains/trove4j/trove4j/20160824/trove4j-20160824.pom'.
> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target我不能去掉mavenCentral(),因为它会抛出很多其他错误。下面是我的build.gradle的样子:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
google()
}
dependencies {
repositories {
mavenCentral()
}
classpath 'com.android.tools.build:gradle:4.1.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
// google()
// mavenCentral()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}都会很感谢你的帮助。我在类似的帖子中找不到对我的问题的明确答案
发布于 2020-12-01 14:59:37
通过禁用杀毒软件,最终解决了此问题。很明显,这是在阻止访问
https://stackoverflow.com/questions/64985529
复制相似问题