首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法解析org.jetbrains.trove4j:trove4j:20160824

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

Stack Overflow用户
提问于 2020-11-24 19:28:29
回答 1查看 201关注 0票数 0

我得到的错误是:

代码语言:javascript
复制
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的样子:

代码语言:javascript
复制
// 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
}

都会很感谢你的帮助。我在类似的帖子中找不到对我的问题的明确答案

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-12-01 14:59:37

通过禁用杀毒软件,最终解决了此问题。很明显,这是在阻止访问

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64985529

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档