Android emulator not able to access the internet

2019-01-16 06:01发布

I know that similar questions have been asked before, but my problem is new only after installing Android Studio 2.3, the latest version in March 2017. I have several years experience developing Android applications, and I have never encountered this problem before. After upgrading to version 2.3 of Android Studio, my emulator is no longer able to access the internet. I even uninstalled/reinstalled Android Studio 2.3 from scratch and created a new emulator, and I am still getting the same error. This is not an app problem. I can't even access the internet from Chrome, and I wasn't having this problem last week. The message that I get says that the server DNS address could not be found -- DNS_PROBE_FINISHED_BAD_CONFIG. The only thing that has changed on my computer in the last week is the new version of Android plus possibly updates to Windows 10. And yes, my computer has access to the internet. Below is an image of my emulator when I try to use Chrome to search for "Google". emulator with error message

28条回答
Explosion°爆炸
2楼-- · 2019-01-16 07:00

After 10 days of trouble, I just deleted everything from C:\Android\.android\ and deleted all created AVDs. Now internet seems to work fine.

查看更多
家丑人穷心不美
3楼-- · 2019-01-16 07:00

Just recreating the emulator with another target API worked for me

查看更多
我命由我不由天
4楼-- · 2019-01-16 07:00

I am on android studio 3.1 and it happened. Solved it by restarting the adb server

$ adb kill-server
$ adb start-server

Hope it helps. Thank you

查看更多
爷、活的狠高调
5楼-- · 2019-01-16 07:00

I had this also and I solved it by creating new android emulator virtual device and chosen Nexus 4 api 27. Before I was creating Pixel device api 28, and it was not working even after recreating device. So I tried totally different configuration and Android Emulator has internet connection as is expected. Other solutions did not work for me but I did no try it all.

查看更多
不美不萌又怎样
6楼-- · 2019-01-16 07:01

Open Android emulator and go to the Extended Controls. Then go to the setting => proxy(Tab) and unchecked "Use Android studuio HTTP proxy setting".

查看更多
孤傲高冷的网名
7楼-- · 2019-01-16 07:02

I am also facing the same problem, but I am trying to solve the problem using various posts. Today I discovered this problem. Your computer configuration is most likely the problemm, not Android Studio and the Android Emulator.

The problem is coming from your Network setup. Just set the Primary DNS Server to 8.8.8.8, which will solve the problem.

查看更多
登录 后发表回答