简体   繁体   中英

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

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

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

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

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM