Force Gradle to use HTTP instead of HTTPS

前端 未结 4 963
清歌不尽
清歌不尽 2020-12-15 06:00

I am trying to build react-native android app, as a dependecy I see I have gradle, but it fails to load on build. Error message:

* What went wrong:
A problem         


        
4条回答
  •  误落风尘
    2020-12-15 06:45

    Try this

    • run a proxy like freegate

    • the root path project in cmd type

      gradlew -Dhttps.proxyHost=127.0.0.1 -Dhttps.proxyPort=8580

    File -> Settings -> Project Settings -> Gradle -> Global Gradle Settings -> Gradle VM Options

    -Dhttp.proxyHost=myProxyAddr
    -Dhttp.proxyPort=myProxyPort
    -Dhttp.proxyUser=myUsername
    -Dhttp.proxyPassword=myPasswd 
    -Dhttp.auth.ntlm.domain=myDomainName
    

提交回复
热议问题