Android模拟器错误:”已连接到设备。无法提供互联网” 如何解决?

huangapple go评论169阅读模式
英文:

Android emulator error " Connected to device. Can't provide internet " How to solve?

问题

错误
无法连接到WiFi

我已经尝试过以下解决方案。
https://stackoverflow.com/questions/50670547/android-studio-android-emulator-wifi-connected-with-no-internet

而且无论我去哪里,都看到这个解决方案。我也尝试了

但是不起作用,在这个问题中**https://stackoverflow.com/questions/50670547/android-studio-android-emulator-wifi-connected-with-no-internet**,我尝试了
这个解决方案,对我有用。不幸的是,当我关闭并重新启动我的笔记本电脑时,我必须运行那个命令。而且当我从Android Studio中删除Android API,然后重新下载Android并重新创建模拟器时,WiFi会连接,但是当重新启动Windows时,我又遇到了同样的问题。我无法理解出现了什么错误。
我还更改了模拟器的WiFi DNS,如下所示

但是对我来说不起作用。

我的模拟器Android版本是Android 13
Android Studio是 "Flamingo 2022.2.1"
我该如何解决这个问题?

英文:

error
wifi not connecting

Android模拟器错误:”已连接到设备。无法提供互联网” 如何解决?

Android模拟器错误:”已连接到设备。无法提供互联网” 如何解决?

I have already tried these solutions.
https://stackoverflow.com/questions/50670547/android-studio-android-emulator-wifi-connected-with-no-internet

And every where I saw this solution. I tried that also

Android模拟器错误:”已连接到设备。无法提供互联网” 如何解决?

but not worked but in the this question https://stackoverflow.com/questions/50670547/android-studio-android-emulator-wifi-connected-with-no-internet I tried
Android模拟器错误:”已连接到设备。无法提供互联网” 如何解决?
this solution that's worked for me. Unfortunately when i shutdown and reOn my laptop I have to run that command. And also when i delete android API from android studio and when redownload the android and re create emulator then wifi is connecting for that time but when restart the windows then again i have to face the same issue. I couldn't understand what's the error for that.
and also i have changed the emulator wifi dns like this
Android模拟器错误:”已连接到设备。无法提供互联网” 如何解决?

but not it's not worked for me.

my emulator android version is android 13
android studio is " Flamingo 2022.2.1 "

How I solve this ?

答案1

得分: 1

对于Windows用户,您需要更改系统/笔记本电脑的设置。

  1. 转到网络和Internet选项 ->

  2. 打开以太网或WiFi(您连接的选项) ->

  3. 单击更改适配器选项 ->

  4. 在您连接的网络上右键单击。

  5. 将打开一个对话框,只需单击Internet协议版本(TCP/IPv4)选项。

另一个对话框将打开,在那里只需忽略关于IP地址的第一组设置(保持不变),然后单击“使用以下DNS服务器地址”的单选按钮,并输入首选DNS服务器:8.8.8.8和备选DNS服务器:8.8.4.4。

现在重新启动模拟器。

英文:

For Windows users, you need to change the setting in your system/laptop.

  1. Go to network and internet option->

Android模拟器错误:”已连接到设备。无法提供互联网” 如何解决?

  1. Open Ethernet or wifi(for which you are connected) option ->
    Android模拟器错误:”已连接到设备。无法提供互联网” 如何解决?

  2. Click on change adapter option ->
    Android模拟器错误:”已连接到设备。无法提供互联网” 如何解决?

  3. Right-click on the network for which you have connected.
    Android模拟器错误:”已连接到设备。无法提供互联网” 如何解决?

  4. A dialog box will be opened and just click on the Internet protocol version (TCP/IPv4) option.

Android模拟器错误:”已连接到设备。无法提供互联网” 如何解决?

Another dialog box will be opened and there just neglect the first set about the IP address (Keep as it is set) and click radio button of Use the following DNS server addresses: and enter as 8.8.8.8 in Preferred DNS server: and 8.8.4.4 in Alternate DNS server:

Android模拟器错误:”已连接到设备。无法提供互联网” 如何解决?

Now restart the emulator.

huangapple
  • 本文由 发表于 2023年6月1日 15:24:04
  • 转载请务必保留本文链接:https://go.coder-hub.com/76379550.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定