如何为Android SDK管理器设置代理? [英] How to set proxy for android sdk manager?
本文介绍了如何为Android SDK管理器设置代理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在代理后面,需要为android虚拟设备设置SDK管理器.但是,SDK管理器无法从加载项列表中下载任何os映像/SDK更新,这可能是由于代理配置所致.我已经尝试过的解决方案:
I am behind a proxy and need to set up SDK manager for the android virtual device. But SDK manager is unable to download any os images/SDK updates from the add-on lists probably due to the proxy configuration. The solutions that I have already tried:
- 在android配置文件中或直接在SDK管理器中设置代理端口和主机
- 创建一个鱿鱼代理服务器并使SDK管理器连接到鱿鱼服务器
- 以管理员身份运行android.bat,并在命令行中使用代理设置,用户名和密码
以上所有方法均无效,并且在SDK管理器中我仍然看不到SDK更新或操作系统映像.如果有人对类似问题有一些解决方案,那就太好了.
None of this worked and I still do not see the SDK updates or the OS images in the SDK manager. If anyone has some solutions for a similar problem, that would be great.
推荐答案
使用代理设置的命令行语法
Command Line syntax to use proxy settings
sdkmanager --list --verbose --no_https --proxy=http --proxy_host=<proxy_host> --proxy_port=<proxy_port>
这篇关于如何为Android SDK管理器设置代理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文