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:
emulator wifi settings (auto ip / dhcp): Nexus 5S Api 28
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:
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With