Getting internet connection in android emulator

∥☆過路亽.° 提交于 2019-12-24 02:13:36

问题


I have a desktop pc with wifi connection.My ip address is 192.168.12.95 and gateway is 192.168.10.10 .But i am not getting internet connection in the android emulator.That is i can not able to acess internate. I have also try with " emulator -avd wbut -http-proxy 192.168.10.10:3128 " this command. But sometimes i get the connection in the emulator without doing anything.

Can someone please tell me how can i get internet connection in my android emulator ?


回答1:


Click F8 key after starting emulator. F8 used for Turning network on / off.




回答2:


Try this

In Eclipse:

Window>Preferences>Android>Launch

In the Default emulator options, put the value

-dns-server 8.8.8.8,8.8.4.4

If this does not work, check this post How to set Internet options for Android emulator?




回答3:


If your system has a internet access then you have to nothing to do to get internet access in emulator. Emulator get internet connection automatically if your system has.. Just check you emulator for AirplaneMode or hit url in android native browser to check internet connection..



来源:https://stackoverflow.com/questions/9941189/getting-internet-connection-in-android-emulator

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!