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

前端 未结 23 1888
离开以前
离开以前 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:21

    In case this helps someone, I had the same issue and even though I set the proxy through the studio settings ( which adds the values of systemProp.http.proxyHost and systemProp.http.proxyHost to gradle.properties), https proxy was not set, so I added this in gradle.properties

    systemProp.https.proxyHost = 
    systemProp.https.proxyPort = 
    

    and problem solved!

提交回复
热议问题