Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android emulator: wifi connected, no internet

It's been a while since I opened android studio. It's all good until today. Today the android emulator can't connect to the internet (tried with chrome browser and my application in the emulator), altough it's wifi is connected. How to fix this?

I already tried:

  • your_path_of_android_sdk\tools\emulator -avd -dns-server 8.8.8.8, but failed with message: PANIC: Missing emulator engine program for 'x86'
  • remove emulator, and add a new one from AVD manager
  • restart pc
  • reinstall android studio

emulator wifi settings (auto ip / dhcp): Nexus 5S Api 28

  • ip address: 192.168.232.2
  • gateway: 192.168.232.1
  • subnetmask: 255.255.248.0
  • dns: 10.0.2.3

Is there a possibility I accidentally uninstall something important / removing network adapter in the 'Control Panel\Network and Internet\Network Connections' ? ( there is only one adapter in there )

Images:

  • wifi connected, no internet
  • emulator wifi settings
  • network adapter on win 7
like image 372
aryono Avatar asked Nov 15 '25 19:11

aryono


1 Answers

Just found the solution

your_path_of_android_sdk\tools\emulator -avd -dns-server 8.8.8.8, but failed with message: PANIC: Missing emulator engine program for 'x86'

it does work! but i have to use emulator.exe in the "emulator" folder, not the one in the "tools" folder

the complete command is: F:\AndroidSDK\emulator>emulator -avd Nexus_5X_API_28_x86 -dns-server 8.8.8.8

where Nexus_5X_API_28_x86 is my android emulator name (found in the avd manager in the android studio).

like image 56
aryono Avatar answered Nov 18 '25 19:11

aryono



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!