[英]Not able to activate internet on android emulator…?
我想在Android模拟器上激活互联网。 我尝试了所有不同的方法,但仍然没有找到方法.....我使用的办公室电脑有代理设置如下:
IP : 10.1.2.23
Password : admin123
我尝试使用命令行选项运行我的模拟器,如下所示:
尝试:1
emulator.exe -avd MyAVD -no-audio -http-proxy http://puser1:admin123@10.1.2.23:8080
尝试:2(在我的电脑下配置DNS以下)
emulator.exe -avd MyAVD -no-audio -http-proxy http://puser1:admin123@10.1.2.23:8080 -dns-server 10.1.14.25,10.1.14.26
尝试:3
我尝试通过以下参考解决,但无法解决它。
http://www.gitshah.com/2011/02/android-fixing-no-internet-connection.html
我自己解决了这个问题。 发布我尝试过的内容,以便帮助其他人
我的代理设置如下:
IP : 10.1.2.23
Password : admin123
1)运行:
如果您从命令行启动android模拟器,请尝试以下命令:
emulator.exe -avd MyAVD -no-audio -http-proxy http://puser1:admin123@10.1.2.23:8080 -dns-server 8.8.8.8,8.8.4.4
如果你从eclipse启动android模拟器,那么请确保你已添加以下设置:
Window --> Preferences --> Android --> Launch --> Default Emumator Options : -dns-server 8.8.8.8,8.8.4.4
Run --> Run Configurations --> Android Application Name --> Under Target Tab Select Emumator --> Additional Emumator Command Line Options : -no-audio -http-proxy http://puser1:admin123@10.1.2.23:8080
2)在android Emumator中添加代理设置:
Setting --> Wireless networks --> Celluler Network / Mobile Network --> Access Points Names --> Edit Default One (In my case --> T-Mobile US,epc.tmobile.com) and add proxy setting with username and password.
别忘了保存设置。
请勿更改或输入任何其他设置。
3)如果静止互联网未激活,则尝试打开/关闭移动互联网2至3次。
4)如果仍然没有上网,那么尝试打开/关闭飞行模式2/3次,保持移动互联网开启。
转到 - > 移动网络设置 - >接入点名称此处您将找到默认的T-mobile US(APN)或添加任何新的,现在只需单击并添加以下字段:
Username: android
password: android
APN Protocol: ipv4
用户名和密码可以是我猜的任何东西,但我将其设置为android以简化。
这个设置对我有用。
谢谢
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.