Ali Mirsalari
Ali Mirsalari

Reputation: 337

Android studio's emulator is not connecting to internet

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

Answers (5)

Michael Robinson
Michael Robinson

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.

DNS fix for Windows or Mac

Upvotes: 0

user13960527
user13960527

Reputation: 53

I had this issue and finally I realized the problem is because of my firewall (Kaspersky).

  • Go to in firewall application settings and search 'Android studio'.
  • You may find several applications with the same name, allow all of them to access Internet.
  • For me, there were 2 apps including JetBrains extension, which i had blocked long time ago!

Upvotes: -1

Andres Bosch
Andres Bosch

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

  1. go to your conection properties
  2. go to sharing tab
  3. click in "Allow other network users to connect through this compueters connection

Upvotes: 0

Ali Mirsalari
Ali Mirsalari

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

Prashant Abdare
Prashant Abdare

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

Related Questions