【问题标题】:Android Studio Gradle Fabric with proxy settings "Unable to connect to the network"具有代理设置“无法连接到网络”的 Android Studio Gradle Fabric
【发布时间】:2015-08-07 13:39:26
【问题描述】:

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

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

由于某种原因,我无法登录插件并显示消息“无法连接到网络”

有人对此问题有任何想法或可能的解决方案吗?

【问题讨论】:

  • 您对此有什么解决方案,有什么变通方法吗?
  • 很遗憾,还没有。
  • 幸运的是我得到了:)
  • 有人解决这个问题吗??

标签: android android-studio proxy crashlytics


【解决方案1】:

导航到

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 完美配合。

更新:

如果您的用户名或密码中有任何特殊字符,例如“域/用户 ID”,请确保在此处将您的特殊字符替换为 ASCII 编码参考https://www.w3schools.com/tags/ref_urlencode.asp

【讨论】:

  • @BMU 它对我有用,对不起,但我不再在代理环境中,所以无法为你测试。我的答案中只有一件事更新了,请检查。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2015-08-20
  • 2014-08-12
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-06-18
  • 2019-10-09
相关资源
最近更新 更多