Android Studio Gradle build failed. Error:Cause: peer not authenticated

前端 未结 23 1883
离开以前
离开以前 2020-12-03 04:54

I have already created one project and gradle sync worked successfully.

When I try to create another project it fails and gives the error message that



        
23条回答
  •  不知归路
    2020-12-03 05:06

    This fixed it for me:

    Open /gradle/wrapper/gradle-wrapper.properties

    Change 'https' to 'http' in the distributionUrl:

    distributionUrl=http\://services.gradle.org/distributions/gradle-2.1-all.zip
    

    Then you need to sync project with gradle files

提交回复
热议问题