简体   繁体   English

如何将互联网连接到Android模拟器?

[英]How to connect internet to android emulator?

Hi I am using HVGA Emulator with platform 4.4, I have internet connection in my computer but when I am trying access internet from my emulator it is not connecting. 嗨,我在4.4平台上使用HVGA仿真器,我的计算机中有Internet连接,但是当我尝试从仿真器访问Internet时,它没有连接。 I have already given the permissions in manifest.xml like 我已经在manifest.xml中授予了权限,例如

<uses-permission android:name="android.permission.INTERNET" />

But still it is not connecting. 但是仍然没有连接。 it is showing "Unfortunately Browser has been stopped". 它显示“不幸的是,浏览器已停止”。 Why ? 为什么呢 Any suggestions. 有什么建议么。

Else please suggest good versions of emulator which can access internet and targeted from lower version. 否则,请提出可以访问Internet并从较低版本定位的模拟器的良好版本。

Assuming your problem is occurring when you're on a wireless network and you have a LAN card installed, the issue is that the emulator tries to obtain its DNS settings from that LAN card. 假设您在无线网络上并且安装了LAN卡时发生问题,那么问题是模拟器试图从该LAN卡获取其DNS设置。 Not a problem when you're connected via that LAN, but utterly useless if you're on a wireless connection. 通过该LAN进行连接时不是问题,但如果使用无线连接则完全没有用。 I noticed this when I was on my laptop. 当我在笔记本电脑上时,我注意到了这一点。

So, how to fix? 那么,如何解决? Simple: Disable your LAN card. 简单:禁用您的LAN卡。 Really. 真。 Just go to your Network connections, find your LAN card, right click it and choose disable. 只需转到您的网络连接,找到您的LAN卡,右键单击它,然后选择禁用。 Now try your emulator. 现在尝试您的模拟器。 If you're like me, it suddenly ... works! 如果你像我,那突然...起作用了!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM