Android 无法解析org.jetbrains.trove4j:trove4j:20160824
我得到的错误是:Android 无法解析org.jetbrains.trove4j:trove4j:20160824,android,android-studio-3.0,Android,Android Studio 3.0,我得到的错误是: 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.
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
}
非常感谢您的帮助。我在类似的帖子中找不到问题的明确答案这个问题最终通过禁用杀毒软件得到解决。显然,这是在阻止访问