Solved: Android Emulator Wifi can not provide internet
These days, I am trying to test the connection with proxy, and I find that it always report error, so I thought that it was the problem of…
These days, I am trying to test the connection with proxy, and I find that it always report error, so I thought that it was the problem of the proxy, but recently I find that the Emulator can not open web page even with Chrome, and it report that the wifi can not provide internet.
Solution for the problem
The problem on my computer is that I enabled the proxy on Android Studio, and I also stop the proxy server on the machine, so that the proxy configuration is not correct in Android Studio.
To solve the problem, I tried a lot of methods, and finally it was solved by disable the proxy setting in Android Studio.
Other Failed Tries
I also tried some other solutions but not work, but I also record it here.
- Changed
/etc/resolv.conf
add nameserver like below:
nameserver 8.8.8.8
nameserver 223.5.5.5
2. Updated the DNS setting in the System Setting
Update the DNS setting from System Perferences/Network/Wifi/Details/DNS
, but after added the DNS servers, the emulator also can not connect the internet.
3. Cold Boot the emulator
When I updated the other settings, I always try to Cold Boot the emulator.
4. Wipe Data on the emulator
I also try to Wipe Data on the emulator and Cold Boot the emulator, but it still can not connect the internet.