英文:
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
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
but not worked but in the this question https://stackoverflow.com/questions/50670547/android-studio-android-emulator-wifi-connected-with-no-internet I tried
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
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用户,您需要更改系统/笔记本电脑的设置。
-
转到网络和Internet选项 ->
-
打开以太网或WiFi(您连接的选项) ->
-
单击更改适配器选项 ->
-
在您连接的网络上右键单击。
-
将打开一个对话框,只需单击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.
- Go to network and internet option->
-
Open Ethernet or wifi(for which you are connected) option ->
-
A dialog box will be opened and just click on the Internet protocol version (TCP/IPv4) option.
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:
Now restart the emulator.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论