Android Studio Gradle Fabric with proxy settings “Unable to connect to the network”

时光毁灭记忆、已成空白 提交于 2019-12-10 03:47:02

问题


I have an Android project that uses the Crashlytics with Fabric plugin on the Android Studio , set up the proxy for the files :

studio64.exe.vmoptions :

-Dhttps.proxyPort=8080
-Dhttps.proxyHost=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
-Dhttps.proxyUser=xxxxx
-Dhttps.proxyPassword=xxxxxxxx

gradle.properties:

systemProp.http.proxyPassword=xxxxx
systemProp.http.proxyHost=proxy-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
systemProp.http.proxyUser=xxxxxxxx
systemProp.http.proxyPort=8080

systemProp.https.proxyPassword=xxxxx
systemProp.https.proxyHost=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
systemProp.https.proxyUser=xxxxxxxx
systemProp.https.proxyPort=8080

For some reason I can not log into the plug giving the message "Unable to connect to the network"

Anyone have any ideas or possible solution to this problem ?


回答1:


Navigate to

Android Studio directory > bin

Add below lines to studio.exe.vmoptions and studio64.exe.vmoptions

-Dhttps.proxyHost=PROXY_ADDRESS
-Dhttps.proxyPort=PROXY_PORT
-Dhttps.proxyUser=USER_NAME_HERE
-Dhttps.proxyPassword=PASSWORD_HERE

It is working perfectly fine with Android studio 2 Beta 5 for me .

UPDATED:

If you have any special characters in your username or password like "Domain/Userid" make sure you replace you your special characters with ASCII Encoding Reference here https://www.w3schools.com/tags/ref_urlencode.asp



来源:https://stackoverflow.com/questions/31879164/android-studio-gradle-fabric-with-proxy-settings-unable-to-connect-to-the-netwo

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!