机器人工作室1.0添加代理启动脚本 [英] android studio 1.0 adding proxy to startup script
问题描述
我想使用启动脚本Ubuntu的运行Android工作室1.0,但因为我背后代理android的工作室被卡在读取的Android SDK组件的信息,也不会下载它。当我从/bin/studio.h开始android的脚本会出现此,在启动机器人工作室尝试下载SDK,但我敢超越代理不会下载SDK。
I'm trying to run android-studio 1.0 on ubuntu using start up script but as i'm behind proxy the android studio gets stuck at "Fetching android sdk component information" and never downloads it. This occurs when i start android script from /bin/studio.h , at startup android-studio tries to download sdk but as i'm beyond proxy it won't download sdk.
我尝试添加-Dhttp.proxyHost =和-Dhttp.proxyport在studio.vmoptions仍然没有获取SDK。由于卡在取屏幕我无法得到GUI,因此无法从GUI设置代理为好。启动后也得到这个错误警告 - ateSettings.impl.UpdateChecker。 - 连接失败,请检查您的网络连接,然后再试一次
I tried adding -Dhttp.proxyHost= and -Dhttp.proxyport in studio.vmoptions still doesn't fetch sdk. As it gets stuck in the fetching screen i'm unable to get GUI and hence not able to set proxy from GUI as well. Also get this error after starting " WARN - ateSettings.impl.UpdateChecker - Connection failed. Please check your network connection and try again."
让我知道,如果有一个这样的解决方法,谢谢
Let me know if there is an workaround for this , thanks
推荐答案
进入安装位置,打开bin目录,编辑idea.properties,下面的行添加到文件的末尾:
Go to the install location, open bin directory, edit the idea.properties, add below line to the file's end:
disable.android.first.run = TRUE
disable.android.first.run=true
然后打开机器人工作室,坐落在配置和再次关闭。
Then open android studio, set the proxy in configuration and close again.
删除行 disable.android.first.run = TRUE
再次idea.properties和Android的开放工作室。
Remove the line disable.android.first.run=true
from idea.properties and open android studio again.
这之后,您可以使用代理工作。
After this, you can work behind a proxy.
这篇关于机器人工作室1.0添加代理启动脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!