摇篮同步和代理错误Android Studio中1.3.1 [英] Gradle sync and proxy error in Android Studio 1.3.1

查看:969
本文介绍了摇篮同步和代理错误Android Studio中1.3.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开始使用udacity教程praticing机器人。我正在想导入现有的项目到Android的studio.My互联网连接使用代理服务器连接到世界其他地区。我已经导入外部项目,我设置代理服务器设置

I have started praticing android using udacity tutorials. i am suppose to import existing project into Android studio.My internet connection uses proxy server to connect to rest of world. I have imported an external project and i set proxy settings in

文件 - >外观和行为 - >系统设置 - > HTTP
同时引入外部项目它提供下列错误: -

File--> Appearance and Behavior--> System Settings -->Http. while importing external project it gives following error:-

下午2点59分20秒摇篮同步启动下午12时59分33秒摇篮同步失败:未知
  举办​​jcenter.bintray.com。您可能需要调整代理设置
  在摇篮。
              有关详细信息,请参考IDE日志(帮助|显示日志)

2:59:20 PM Gradle sync started 12:59:33 PM Gradle sync failed: Unknown host 'jcenter.bintray.com'. You may need to adjust the proxy settings in Gradle. Consult IDE log for more details (Help | Show Log)

我曾尝试设置代理中
gradle.properties 如图所示<一个href=\"https://docs.gradle.org/current/userguide/userguide_single.html#sec:accessing_the_web_via_a_proxy\"相对=nofollow> 这里

i have tried setting proxy in gradle.properties as shown here

和我也有阅读栈溢出和TREID排查,但没有其他的工作类似的问题.. !!

and i have also read other similar questions in stack overflow and treid to troubleshoot but nothing works..!!

我注意到一个奇怪的是,这个问题与进口的文件仍然存在。当我创建工作室的任何新项目。它会立即打开没有错误

我正在导入该项目可以从 这里下载

请帮助

推荐答案

将代理信息本身并不能帮助我(它实际上是在我已经有了),但加入的用户名和密码为我工作,即使我的代理并不需要它。

Adding the proxy info alone didn't help me (it was actually already there in mine), but adding the user and password worked for me, even though my proxy doesn't require it.

添加到您的 gradle.properties 文件的底部,并留下以下就这样,如果你的代理不要求身份验证:

Add this to the bottom of your gradle.properties file and leave the following just like this if your proxy doesn't require authentication:

systemProp.http.proxyUser=user
systemProp.http.proxyPassword=password

这篇关于摇篮同步和代理错误Android Studio中1.3.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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