Android Studio - Android Emulator Wifi Connected with No Internet

前端 未结 21 1920
伪装坚强ぢ
伪装坚强ぢ 2020-11-27 13:42

I have wasted a whole day trying out different solutions floating around in SO and other place mentioned to enable wifi on the android emulator but to no avail. Can anybody

21条回答
  •  孤独总比滥情好
    2020-11-27 13:58

    100% Working on Windows 10

    Android AVD come with Google DSN configured inside emulators. So we need to set same to network sharing for accessing same.

    Google Public DNS IP addresses The Google Public DNS IP addresses (IPv4) are as follows:

    8.8.8.8

    8.8.4.4

    The Google Public DNS IPv6 addresses are as follows:

    2001:4860:4860::8888 2001:4860:4860::8844 You can use either address as your primary or secondary DNS server.

    More Info

    Here I show for setting v4 IP steps

    1. Open Network and Sharing Center
    2. Right Click on current internet connection
    3. Select Properties
    4. Double Click on Internet Protocol Version 4 (TCP/IPv4)
    5. Select Use the following DNS server address
    6. Set the Preferred and Alternate DNS server
    7. Prefered DNS Server : 8.8.8.8
    8. Alternate DNS Server : 8.8.4.4
    9. Click on OK
    10. Restart Android AVD

    Note : If VPN is enabled then it will not work need to disconnect your VPN

提交回复
热议问题