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

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

问题描述

我有一个 Android 项目,它在 Android Studio 上使用带有 Fabric 插件的 Crashlytics,为文件设置代理:

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 编码参考替换您的特殊字符 https://www.w3schools.com/tags/ref_urlencode.asp

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天全站免登陆