【发布时间】:2014-08-21 11:50:00
【问题描述】:
我已经安装了 eclipse,但是当我启动 Android 模拟器时,它显示一个错误,它无法连接到互联网。我在我的笔记本电脑上使用eclipse,它连接到WiFi,但模拟器无法连接到它。
【问题讨论】:
标签: android networking android-emulator
我已经安装了 eclipse,但是当我启动 Android 模拟器时,它显示一个错误,它无法连接到互联网。我在我的笔记本电脑上使用eclipse,它连接到WiFi,但模拟器无法连接到它。
【问题讨论】:
标签: android networking android-emulator
1> 我建议您使用 GENYMOTION。它是最快的安卓模拟器。如果存在错误,更容易纠正错误。 深度学习链接:https://cloud.genymotion.com/page/launchpad/download/
2> 还要纠正你刚才所说的错误;确保您已在 AndroidManifest.xml 中设置互联网权限
<uses-permission android:name="android.permission.INTERNET" />
3> 转到
...\android-sdk-windows\tools>
并写下以下内容并检查
emulator -avd your_avd_name -dns-server 8.8.8.8
在应用这些步骤之前,不要忘记关闭您之前运行的 AVD。
尝试以下 3 个步骤中的任何一个。
【讨论】: