Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android studio's emulator is not connecting to internet

Tags:

android

avd

I'm using windows 10 and android studio 3.0.1. In past, I was able to use internet at my Android emulators but now, I'm not ! I saw similar topic in stackoverflow but answers not working for me, what should I do ?

like image 535
kali Avatar asked Mar 28 '18 13:03

kali


2 Answers

try this command on windows cmd while replace the path with your own. C:\Users\prashant\AppData\Local\Android\sdk\emulator\emulator.exe -avd Nexus_5X_API_25 -dns-server 8.8.8.8

If this doesn't work try genymotion, it's best. Here

like image 134
Prashant Abdare Avatar answered Sep 21 '22 14:09

Prashant Abdare


Finally I found the answer!
I'm using proxy in my android studio and emulators by default using android studio proxy setting too!
I just disabled proxy in emulator and problem solved!

like image 34
kali Avatar answered Sep 18 '22 14:09

kali