Android Studio - Android Emulator Wifi Connected with No Internet

前端 未结 21 1830
伪装坚强ぢ
伪装坚强ぢ 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 14:03

    My solution using Mac OSX 10.13

    I read about it being caused by LAN card and WiFi being enabled, and some approaches seemed complicated to me, so I simply tried this, and it worked:

    • Disabled WiFi on my laptop.
    • Switched off the emulator.
    • Did a cold boot on the emulator (AVD Manager -> on emulator actions -> Cold Boot Now).
    • After reboot with laptop WiFi disabled the emulator showed proper WiFi connection (emulator still shows AndroidWifi but is connected to my laptop internet. WiFi symbol now look like this: WiFi symbol connected)
    • I then enabled WiFi on my laptop and everything worked.

提交回复
热议问题