无法解析org.jetbrains.trove4j:trove4j:20160824



我得到的错误是:

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
}

如果有任何帮助,我将不胜感激。我找不到一个明确的答案,我的问题在类似的帖子

这个问题最终通过禁用防病毒软件得到了解决。显然,这是在阻止访问

最新更新