How to connect android emulator to the internet

前端 未结 30 1551
独厮守ぢ
独厮守ぢ 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 04:52

    I solved it my disabling all network connections except the wifi connection I was using, then setting the properties on that one remaining enabled connection to have statically assigned DNS addresses. (no DHCP) This was on Win7 64bit

    0 讨论(0)
  • 2020-11-22 04:53

    Have you tried starting the emulator with administrative privileges? It worked for me, I'm running Windows 7 64bit)

    0 讨论(0)
  • 2020-11-22 04:55

    My Service Order preferences were correct (Wi-Fi was first) but still could not connect.

    Answer was to turn off the Thunderbolt Bridge:

    System Preferences > Network > Thunderbolt Bridge

    Then set Configure IPv4 to off and Apply your changes.

    No need to screw around with Access Points in the emulator.

    0 讨论(0)
  • 2020-11-22 04:56

    There are different solutions to this problem . One of these , i will show you on my experiment and outcomes seen on results using a recent android studio and AVD images downloaded 2017.

    1. First thing you have to do is launch your AVD from android studio.(in my case i choose NEXUSAPI25 android 7.1 image)

    2. Goto Settings->Wirless and Networking - > Cellular Network - > Access Points -> (+) press add - > enter the following if you dont have NTLM proxy or proxy at all (that means you are directly connected)

      a. add apn name as myAPN b. add apn server => www c. save and try browsing the internet.

    if this doesn work add 'ANDROID_SDK_ROOT' in you environment variable

    Then , launch AVD using emulator command as follow

    emulator -avd Nexus25 -dns-server 8.8.8.8
    
    1. For those who use NTLM proxies , i will show you how it work for me next.

    2. add your Android_sdk_root path into your environment variable. THis make command line code read succesfully like using AVD names and so on.

    3. Launch your emaulator using the following command

    >emulator -avd Nexus_5X_API_25 -http-proxy http://username:password@ipaddress:port

    ENTER

    0 讨论(0)
  • 2020-11-22 04:56

    I had similar problem. I have installed an application that required INTERNET permission (and used it), and all of sudden, worked.

    Guys, check also whether if you are not connected through a VPN somewhere, because it also can disturb the Internet connection.

    blacharnia

    0 讨论(0)
  • 2020-11-22 04:56

    yes--in win 7 start the emulator with administrator privs and all will be well--or at least you'll get the wireless going in android.

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