No internet access on Android emulator, general internet connection

I installed Eclipse Juno and updated ADT, as well as to 22.0, I created a custom AVD version of Android 2.3, as it works fine, but it looks like there is no internet connection on my emulator,

Note. It also displays a 3G character in the title bar. See the image of my emulator below.

It is also worth noting that I connect to the Internet via a DSL Internet cable directly to my NIC, and also provide my Internet via Wi-Fi with my room partners through connect pro pro Hostspot. In this situation, there is no internet connection on my emulator.

But when I connect to my friend’s Internet Connectify hotspot, then it works fine.

I want to solve this problem, I think this is due to sharing an internet connection.

enter image description here

+4
source share
1 answer

Finally, I figured out my problem.

This is a problem due to the DNS server address.

I took the following steps

  • open CMD
  • Go to your android-sdk / tools path, Like my path G:\Andriod Development\android-sdk\tools
  • enter this command G:\Andriod Development\android-sdk\tools>emulator.exe -avd Android_2.3.3 -dns-server 8.8.8.8 -scale 0.75

here Android_2.3.3 is your AVD name, -dns-server 8.8.8.8 will set your DNS address to 8.8.8.8 or 8.8.8.8:55, and -scale will scale your AVD to the specified value.

this will launch a new emulator. Enjoy :)

Hope may be beneficial to others.

+12
source

Source: https://habr.com/ru/post/1487631/


All Articles