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