Error:Cause: unable to find valid certification path to requested target

前端 未结 22 1255
无人及你
无人及你 2020-11-29 05:47

I got the following Error in android Studio 2.2.3 when I sync gradle.

Error:Cause: unable to find valid certification path to requested target

22条回答
  •  我在风中等你
    2020-11-29 06:11

    I faced the same issue, but fixed it by adding

    maven { url "http://jcenter.bintray.com"}
    

    in the project Level Gradle File

    buildscript {
    repositories {
        jcenter()
        maven { url "http://jcenter.bintray.com"}
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.3'
        classpath 'com.google.gms:google-services:3.0.0'
    }
    }
    allprojects {
    repositories {
        mavenCentral()
        jcenter{ url "http://jcenter.bintray.com/" }
        maven { url "https://jitpack.io" }
    }
    }
    task clean(type: Delete) {
    delete rootProject.buildDir
    }
    

提交回复
热议问题