Emulator unable to connect to internet

后端 未结 7 458
醉话见心
醉话见心 2021-01-22 08:36

My machine is using a WiFi connection for internet, and the LAN card is idle. it\'s not behind a proxy or firewall, but somehow, my emulator\'s browser isn\'t loading any page.

相关标签:
7条回答
  • 2021-01-22 09:15

    I have searched long and hard for an answer to this question. From what I gather Google did that on purpose once people started using emulators to add spam comments to the market. However, I did find a guy who had done it and was willing to share the required images.

    NOTE: It looks like it's just going to fix the market. But the market won't run without internet, so if the market is fixed, the browser internet will work too. I downloaded the linked files myself and it showed the internet in the browser perfectly.

    0 讨论(0)
  • 2021-01-22 09:18

    I have Disable all the other WiFi & LAN connections. Make only single connection enable, with which you have to work with. [Check the connections from "Network Connections"] & Restart the machine works for me.

    0 讨论(0)
  • 2021-01-22 09:23

    I had the same problem with OS X. I have been working for 2 days now to get the emulator to connect to the internet, all solutions I have read so far (use -dns-server, use proxy settings or disable unused netword devices) didn't work.

    This morning I started the emulator with sudo ./emulator -avd my_avd_name and it worked! Emulator was able to connect to the internet.

    So there is something wrong with privileges or so, I need to figure this out. But it works for the moment.

    0 讨论(0)
  • 2021-01-22 09:27

    I don't know what happened, but I disabled the USB WiFi dongle and switched to a cabled network, and it started working. don't know what the reasons were, but I am happy now that it worked.

    May be this is useful to others too!

    0 讨论(0)
  • 2021-01-22 09:29

    Open up a terminal on the development machine and trying resolving and pinging by name and by ip various known-good internet hosts.

    Then open up an adb shell to the emulator and try the same things from there

    0 讨论(0)
  • 2021-01-22 09:34

    In Windows, run the AVD Manager with administrator privileges. It worked for me.

    0 讨论(0)
提交回复
热议问题