Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/227.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android emulator无法连接到internet_Android_Networking_Android Emulator - Fatal编程技术网

Android emulator无法连接到internet

Android emulator无法连接到internet,android,networking,android-emulator,Android,Networking,Android Emulator,我已经安装了eclipse,但当我启动Android emulator时,它显示了一个无法连接到internet的错误。我正在笔记本电脑中使用eclipse,它已连接到WiFi,但模拟器无法连接到它。1>我建议您使用GENYMOTION。它是最快的android仿真器。如果存在错误,则更容易纠正错误。 DL链接: 2> 还要纠正你刚才所说的错误;确保已在AndroidManifest.xml中设置internet权限 <uses-permission android:name="andro

我已经安装了eclipse,但当我启动Android emulator时,它显示了一个无法连接到internet的错误。我正在笔记本电脑中使用eclipse,它已连接到WiFi,但模拟器无法连接到它。

1>我建议您使用GENYMOTION。它是最快的android仿真器。如果存在错误,则更容易纠正错误。 DL链接:

2> 还要纠正你刚才所说的错误;确保已在AndroidManifest.xml中设置internet权限

<uses-permission android:name="android.permission.INTERNET" />
然后写下下面的内容并检查

emulator -avd your_avd_name -dns-server 8.8.8.8
在应用这些步骤之前,不要忘记关闭以前运行的AVD

尝试三个步骤中的任何一个。

可能重复的步骤
emulator -avd your_avd_name -dns-server 8.8.8.8