How to connect android emulator to the internet

前端 未结 30 1529
独厮守ぢ
独厮守ぢ 2020-11-22 04:38

How can I connect my Android emulator to the internet, e.g. to use the browser? I\'ve found lots of advice on what do to when your connected through a proxy, but that\'s not

相关标签:
30条回答
  • 2020-11-22 05:10

    In eclipse go to DDMS

    under DDMS select Emulator Control ,which contains Telephony Status in telephony status contain data -->select Home , this will enable your internet connection ,if you want disable internet connection for Emulator then --->select None

    (Note: This will enable internet connections only if you PC/laptop on which you are running your eclipse have active internet connections.)

    0 讨论(0)
  • 2020-11-22 05:10

    Within the Android emulator, turning Airplane Mode on, then off again worked for me.

    0 讨论(0)
  • 2020-11-22 05:10

    If you're on MacOS with 2.2 and you keep seeing an error about data connectivity, try the above, it works.

    • I removed all the network interfaces via Sys Prefs except LAN
    • Even thought my DNS is provided by DHCP, I retyped DNS with just one server
    • I used -http-proxy on the command line to specify one

    It starts working at the office. Phew.

    0 讨论(0)
  • 2020-11-22 05:11

    I had the same problem on my virtual windows 7.

    1. Go to Network Connections
    2. Alt > Advanced > Advanced Settings...
    3. In the second tab bring the internet networks interface on the top

    hope it's helpful thanks to

    0 讨论(0)
  • 2020-11-22 05:12

    In my case I just had to launch the Android virtual device (AVD) from the "Android SDK and AVD Manager", and it was working

    0 讨论(0)
  • 2020-11-22 05:12

    I also experienced the same problem. The simplest solution I found out is:

    • Go to your Android\Sdk\emulator folder and open command prompt.
    • Type emulator -list-avds to see available emulator names.
    • Type emulator -avd name-of-your-device -netdelay none -netspeed full -dns-server 8.8.8.8 command and press enter.
    0 讨论(0)
提交回复
热议问题