Reputation: 337
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 ?
Upvotes: 8
Views: 22217
Reputation: 81
This problem appeared out of nowhere for me after updating Android Studio to Chipmunk. After a great deal of searching and trying different solutions, I found one on Medium.com that solved it! This is a very similar fix that Prashant posted (setting the DNS server to 8.8.8.8), but it gave a step-by-step solution without using terminal, and included adding 8.8.4.4 as well.
Upvotes: 0
Reputation: 53
I had this issue and finally I realized the problem is because of my firewall (Kaspersky).
Upvotes: -1
Reputation: 9
you need to enable your internet conection to share with another conected devices, once you do it restart the emulator and you got internet
this works for windows
Upvotes: 0
Reputation: 337
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!
Upvotes: 11
Reputation: 2455
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
Upvotes: 15