問題描述
我一直在使用這種方法從我的 Android 模擬器訪問互聯網模擬器 -http-proxy <<proxy-name>>-avd <<avd_name>>
I've been using this method to gain access to internet from my Android emulator
emulator -http-proxy <<proxy-name>> -avd <<avd_name>>
它有效,但這是最好的方法嗎?我需要從命令行打開模擬器并且不能只從 Eclipse 或其他東西中打開模擬器,這感覺不對.
It works but is that the best way to do it? It just doesn't feel right that I need to open the emulator from command line and can't just do it from Eclipse or something.
似乎也無法在AVD Manager"上找到互聯網選項.
Can't seem to find an internet option on the "AVD Manager" either.
推薦答案
您也可以嘗試明確指定 DNS 服務器設置,這對我有用.
You could also try explicitly specifying DNS server settings, this worked for me.
在 Eclipse 中:
In Eclipse:
窗口>首選項>Android>啟動
Window>Preferences>Android>Launch
默認模擬器選項:-dns-server 8.8.8.8,8.8.4.4
Default emulator options: -dns-server 8.8.8.8,8.8.4.4
這篇關于如何為 Android 模擬器設置 Internet 選項?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!