无法在 android 模拟器上激活互联网...?
Not able to activate internet on android emulator...?
我正在尝试在 android 模拟器上激活互联网。我已经尝试了所有不同的方法,但仍然找不到方法.....我使用的办公室 PC 具有如下代理设置:
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
No internet on Android emulator - why and how to fix?
How to connect android emulator to the internet
How to setup Android emulator proxy settings?
我自己解决了这个问题。发布我的尝试以帮助其他人
我的代理设置如下:
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) 如果 Still Internet 未激活,则尝试打开/关闭移动互联网 2 到 3 次。
4) 如果仍然无法上网,则尝试打开/关闭飞行模式 2 / 3 次,保持移动互联网打开。
转到 -> 移动网络设置 -> 接入点名称
在这里您会默认找到 T-mobile US (APN) 或添加任何新的,现在只需单击并添加以下字段:
Username: android
password: android
APN Protocol: ipv4
用户名和密码可以是我猜的任何东西,但为了简单起见,我将其设置为 android。
这个设置对我有用。
谢谢
我正在尝试在 android 模拟器上激活互联网。我已经尝试了所有不同的方法,但仍然找不到方法.....我使用的办公室 PC 具有如下代理设置:
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
No internet on Android emulator - why and how to fix?
How to connect android emulator to the internet
How to setup Android emulator proxy settings?
我自己解决了这个问题。发布我的尝试以帮助其他人
我的代理设置如下:
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) 如果 Still Internet 未激活,则尝试打开/关闭移动互联网 2 到 3 次。
4) 如果仍然无法上网,则尝试打开/关闭飞行模式 2 / 3 次,保持移动互联网打开。
转到 -> 移动网络设置 -> 接入点名称 在这里您会默认找到 T-mobile US (APN) 或添加任何新的,现在只需单击并添加以下字段:
Username: android
password: android
APN Protocol: ipv4
用户名和密码可以是我猜的任何东西,但为了简单起见,我将其设置为 android。
这个设置对我有用。
谢谢