Android peer not authenticated

后端 未结 7 553
轻奢々
轻奢々 2020-12-14 23:03

Everything has been working, only today i started to get an error message, and i can\'t even \"Sync Project with Gradle files\" from Android Studio. The only thing i have ch

7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-14 23:24

    Add these properties to your gradle home directory in a new gradle.properties file

    systemProp.https.proxyHost=[your proxy https host IP or DNS name]
    systemProp.https.proxyPort=[your proxy https port, usually 8080]
    systemProp.http.proxyHost=[your proxy http host IP or DNS name]
    systemProp.http.proxyPort=[your proxy http port, usually 8080]
    

    OSX: /users/yourusername/.gradle/gradle.properties

    Windows: C:\Users\yourusername.gradle\gradle.properties

    Then, restart Android Studio and open your project.

    Note: I used the same values for HTTP and HTTPS, they could be different from yours.

提交回复
热议问题