Gradlew behind a proxy

后端 未结 16 1504
一个人的身影
一个人的身影 2020-12-04 12:26

I have a sample from Gaelyk (called Bloogie) and it is using gradlew.

I am behind a proxy.

I\'ve read gradle docs and found this:

gradle.properties

16条回答
  •  再見小時候
    2020-12-04 12:44

    I have the same proxy issue while working with Cordova project.

    To fix the issue, I have created a new gradle.properties file under the android folder of my Cordova project (hello/platforms/android), and added the code from your question

    systemProp.http.proxyHost=proxy.yourproxysite.com
    systemProp.http.proxyPort=8080
    systemProp.http.proxyUser=yourusername
    systemProp.http.proxyPassword=password
    

提交回复
热议问题