错误:原因:无法找到请求目标的有效证书路径

时间:2019-12-03 21:17:08

标签: android android-studio-3.0

我已经安装了Android Studio 3.5.2,并开始运行我的第一个示例应用程序。我收到“错误:原因:无法找到请求目标的有效证书路径”错误,我无法在Android Studio中构建示例项目。我在下面发布了build.gradle文件,

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        //google()
        jcenter()
        maven { url "http://jcenter.bintray.com"}
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.5.2'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}
allprojects {
    repositories {
        mavenCentral()
        //google()
        //jcenter()
        jcenter{ url "http://jcenter.bintray.com/" }
        maven { url "https://jitpack.io" }
    }
}
task clean(type: Delete) {
    delete rootProject.buildDir
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

我试图根据stackoverflow.com中提供的分辨率修改build.gradle脚本,但是它没有帮助。请协助解决错误。

0 个答案:

没有答案