No internet connection for Visual Studio Android Emulator

后端 未结 5 1099
猫巷女王i
猫巷女王i 2020-12-13 13:36

I\'m using Android Emulator that comes with Visual Studio 2015. When I run it, in Wi-Fi settings of Android this status appears Obtaining IP Address.. for

相关标签:
5条回答
  • 2020-12-13 14:14

    For me adding an external adapter for each physical one (lan/wifi) worked but only when the virtual LAN identification was unchecked on each of them.

    0 讨论(0)
  • 2020-12-13 14:19

    For unknown reasons by default my second adapter was set to VirtualBox Host Ethernet I've changed it to Intel Dual Band and now all works even without emulator restart!

    0 讨论(0)
  • It looks like Android is unable to acquire an IP address from DHCP.

    In Hyper-V Manager (virtmgmt.msc), select the VM for the emulator profile you are trying to start and go to its Settings... (right click for context menu or see action pane on right side).

    Under Hardware, make sure there are two virtual switches:

    1. Emulator Internal Network Adapter
    2. Emulator External Network Adapter

    Emulator External Network Adapter must be listed as the second adapter -- the order matters. If they are ordered incorrectly, delete the External adapter and recreate it, giving it the same settings it had before. You can create it by clicking Add Hardware in the VM's hardware list.

    0 讨论(0)
  • 2020-12-13 14:32

    I fixed it by setting the second network adapter to Default switch and not the physical network adapterScreen Grab.

    0 讨论(0)
  • 2020-12-13 14:32

    Thought this might help someone out there. Mine emulator had internet connection before but suddenly it stopped connecting. I resolved it be restarting my emulator with factory settings.

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