1

I am working in a native-script application, so I use Android Emulator for checking, I have mentioned below the version of Emulator.

The Internet is not connected in my emulator even signal of the WIFI also shows cross mark whenever I connect the internet connection from my mobile (Android Lenovo P2) through hot-spot.

The emphasized textInternet does connect in my Emulator whenever I connect internet via my ACT connection wifi through the router.

Emulator APK version: 26. Emulator device: Nexus 5.

Note: My laptop connects the internet only problem in Emulator

Does anybody help me To do any setting has to be done in my Emulator to connect the internet when I connect through my mobile hot-spot?

Muthukumar Marichamy
  • 1,175
  • 1
  • 17
  • 39

2 Answers2

3

This clearly indicates Android emulator doesn't recognize youe mobile network connected with your machine network configuration. I would recommend to try following actions to resolve this issue.

  1. Open the AVD Manager and wipe the data of that emulator.
  2. If you were working with wifi network and instantly switch with your mobile data may cause this problem. just try to restart the emulator and try.
  3. Your Emulator may be pointed with older version of SDK, so you may want to uninstall Android Emulator and re-install it. Sometimes older SDK data causes the issue that you have encountered.
  4. Reboot your machine then connect freshly with your mobile data started with emulator and check it out.
  5. If above nothing works just uninstall AVD and re-install.

Look out this Reference link as well.

Please let me know the above solutions works for you! Cheers!!!

Sathish
  • 416
  • 1
  • 6
  • 20
1

I have fixed the issue by adding this line in Androidmanifest.xml <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

vinod
  • 22
  • 6