具有代理设置“无法连接到网络"的Android Studio Gradle Fabric [英] Android Studio Gradle Fabric with proxy settings "Unable to connect to the network"

查看:159
本文介绍了具有代理设置“无法连接到网络"的Android Studio Gradle Fabric的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Android项目,该项目使用Android Studio上的Crashlytics with Fabric插件,并设置了文件代理:

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:

studio64.exe.vmoptions :

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

gradle.properties:

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 ?

推荐答案

导航到

Android Studio directory > bin

将以下行添加到studio.exe.vmoptionsstudio64.exe.vmoptions

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

对于我来说,它与Android Studio 2 Beta 5完美配合.

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

已更新:

如果您的用户名或密码中有特殊字符(例如域/用户ID"),请确保使用ASCII编码参考将您的特殊字符替换为此处

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

这篇关于具有代理设置“无法连接到网络"的Android Studio Gradle Fabric的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆