在Android模拟器没有互联网 - 为什么,以及如何解决? [英] No internet on Android emulator - why and how to fix?

查看:190
本文介绍了在Android模拟器没有互联网 - 为什么,以及如何解决?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用网络的Andr​​oid模拟器,但没有成功。 任何想法?

I am trying to use internet with the Android emulator, but with no success. Any ideas?

推荐答案

如果通过使用互联网,你的意思是,你不能从一个活动访问互联网,而测试的仿真器,确保你已经设置了互联网许可你的的Andr​​oidManifest.xml

If by "use internet", you mean you can not access the internet from an activity while testing on the emulator, make sure you have set the internet permission in your AndroidManifest.xml

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

如果您使用的网络浏览器,请参阅多纳尔的帖子

If you are using the web browser, refer to Donal's post

这篇关于在Android模拟器没有互联网 - 为什么,以及如何解决?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆