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

前端 未结 22 1249
无人及你
无人及你 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:16

    For me this worked:

    buildscript {
        repositories {
            maven { url "http://jcenter.bintray.com"}
            maven {
                url 'https://maven.google.com/'
                name 'Google'
            }
        }
    ...
    }
    
    allprojects {
        repositories {
            mavenCentral()
            jcenter{ url "http://jcenter.bintray.com/" }
            maven {
                url 'https://maven.google.com/'
                name 'Google'
            }
        }
    }
    

提交回复
热议问题