Android Studio Gradle Cloth with proxy settings "Unable to connect to the network"

I have an Android project that uses the Crashlytics with Fabric plugin on Android Studio, configured a 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’t enter the plug with the message “Could not connect to the network”

Anyone have any ideas or a possible solution to this problem?

+7
android android-studio proxy crashlytics
source share
1 answer

Switch to

 Android Studio directory > bin 

Add the lines below 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 works great with Android 2 Beta 5 for me.

UPDATED:

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

+6
source share

All Articles