Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No internet access #23

Open
Florian-crg opened this issue Mar 15, 2021 · 35 comments
Open

No internet access #23

Florian-crg opened this issue Mar 15, 2021 · 35 comments

Comments

@Florian-crg
Copy link

Can't connect to internet on my emulator when my MAC M1 is connected to personal hotspot on my iPhone.

@hdarioDev
Copy link

help please

@nahidmbstu
Copy link

nahidmbstu commented Mar 21, 2021

https request are failing, please response

@vanditmehta
Copy link

getting the same issue...SOS

@Artyom873
Copy link

+1 Can't connect to internet on my emulator when my MAC M1 is connected to wi-fi or personal hotspot on my iPhone. Tried every method I can find to fix it

@HugoLuna5
Copy link

HugoLuna5 commented Jun 18, 2021

+1 Can't connect to internet on my emulator when my MAC M1 is connected to wi-fi or personal hotspot on my iPhone. Tried every method I can find to fix it

Try changing the dns of your MacBook, put the following: 8.8.8.8 - 1.1.1.1

It solved my connection problem with this emulator.

@Artyom873
Copy link

+1 Can't connect to internet on my emulator when my MAC M1 is connected to wi-fi or personal hotspot on my iPhone. Tried every method I can find to fix it

Try changing the dns of your MacBook, put the following: 8.8.8.8 - 1.1.1.1

It solved my connection problem with this emulator.

I've tried this too. It gave nothing

@sukhcha-in
Copy link

On my machine, Wi-Fi doesn't get turned on.
https://imgur.com/a/xWgriwS

@Artyom873
Copy link

On my machine, Wi-Fi doesn't get turned on.
https://imgur.com/a/xWgriwS

Me too, but today I fix it. You need to update android emulator on latest version.
My steps:
1 Delete android emulator in Android SDK - SDK tools
2 Change update site in Updates - Update channel, on Canary channel
3 Install android emulator in Android SDK - SDK tools
4 Change update site back on Stable channel

You can check you version here and it should be the latest:
Screenshot at Jun 18 23-44-49
Screenshot at Jun 18 23-47-23

@sukhcha-in
Copy link

@Artyom873 Even though I have updated the Android Emulator version to 30.7.4 from SDK Tools.
SDK Tools
Emulator's about section still shows older version. How to update there? I tried creating the new emulator but it gets created on older version (30.3.5).
Actual Emulator

@Artyom873
Copy link

@Artyom873 Even though I have updated the Android Emulator version to 30.7.4 from SDK Tools.
Emulator's about section still shows older version. How to update there? I tried creating the new emulator but it gets created on older version (30.3.5).

You can try install Android Studio Canary (without removing your stable). Delete all old emulator's and create new one in Canary version. Maybe it help your studio "find" new version of emulator. I did this too when I updated the emulator, but I don't know what it gave. Maybe this is important and will help you.

@rusakovic
Copy link

I just reinstalled the Android Studio, and now 30.7.4 is selected in emulator.

  • rm -Rf /Applications/Android\ Studio.app
    rm -Rf ~/Library/Preferences/AndroidStudio*
    rm -Rf ~/Library/Preferences/com.google.android.*
    rm -Rf ~/Library/Preferences/com.android.*
    rm -Rf ~/Library/Application\ Support/AndroidStudio*
    rm -Rf ~/Library/Logs/AndroidStudio*
    rm -Rf ~/Library/Caches/AndroidStudio*
    rm -Rf ~/.AndroidStudio*
    rm -Rf ~/AndroidStudioProjects
    rm -Rf ~/.gradle
    rm -Rf ~/.android
    rm -Rf ~/Library/Android*

@jemmyn
Copy link

jemmyn commented Jun 23, 2021

I just reinstalled the Android Studio, and now 30.7.4 is selected in emulator.

  • rm -Rf /Applications/Android\ Studio.app
    rm -Rf ~/Library/Preferences/AndroidStudio*
    rm -Rf ~/Library/Preferences/com.google.android.*
    rm -Rf ~/Library/Preferences/com.android.*
    rm -Rf ~/Library/Application\ Support/AndroidStudio*
    rm -Rf ~/Library/Logs/AndroidStudio*
    rm -Rf ~/Library/Caches/AndroidStudio*
    rm -Rf ~/.AndroidStudio*
    rm -Rf ~/AndroidStudioProjects
    rm -Rf ~/.gradle
    rm -Rf ~/.android
    rm -Rf ~/Library/Android*

This worked for me. I had to delete all these files and then relaunch Android Studio and create a new emulator with Pixel 3a for Google Play support. Where before I had tried all the other suggestions (specifying DNS, disabling other network adapters, using the Canary update channel and even using Android Studio Preview) I was just unable to turn on WiFi and the no network icon showed up on the Status Bar (globe with a small x). Thanks rusakovic!

Now on to the new issue where Chrome keeps stopping in the emulator. Nevermind, it was because I was trying to use Android R api. With S it works fine!

@cikichen
Copy link

image

@blackpantific
Copy link

On my machine, Wi-Fi doesn't get turned on.
https://imgur.com/a/xWgriwS

Me too, but today I fix it. You need to update android emulator on latest version.
My steps:
1 Delete android emulator in Android SDK - SDK tools
2 Change update site in Updates - Update channel, on Canary channel
3 Install android emulator in Android SDK - SDK tools
4 Change update site back on Stable channel

You can check you version here and it should be the latest:
Screenshot at Jun 18 23-44-49
Screenshot at Jun 18 23-47-23

thank you so much, after 3 sad months android emulator on my m1 finally works correctly

@frankfuu
Copy link

frankfuu commented Aug 12, 2021

Has there been a proper fix for this yet?

My config is listed below and no love :(

Download file - android-studio-2020.3.1.22-mac_arm.zip
Android Studio version - Artic Fox 2020.3.1
Emulator version - 30.7.4-7453540
Device - Pixel 4 API 31
System image - arm64-v8a

Screen Shot 2021-08-12 at 9 37 58 pm

@ChristianParraCL
Copy link

This combination is working for me on a Macbook Air M1:

Captura de Pantalla 2021-08-12 a la(s) 22 14 42

ps: Chrome crashes sometimes, i know is a known issue

@absarrahman
Copy link

This combination is working for me on a Macbook Air M1:

Captura de Pantalla 2021-08-12 a la(s) 22 14 42

ps: Chrome crashes sometimes, i know is a known issue

How did you get API 29? I am not able to download it

@frankfuu
Copy link

Yeah absarrahman I'm not able to get it either. I think @ChristianParraCL is not on the stable release

@absarrahman
Copy link

Yeah absarrahman I'm not able to get it either. I think @ChristianParraCL is not on the stable release

I think we need to use canary builds for now. Cause stable ones are not working and without internet connection, it's gonna be a huge pain

@absarrahman
Copy link

absarrahman commented Aug 13, 2021

Screenshot 2021-08-13 at 1 13 26 PM
@frankfuu Finally managed to solve it. Just use the latest canary version. It will fix the issue

@Qiubeijun
Copy link

Screenshot 2021-08-13 at 1 13 26 PM
@frankfuu Finally managed to solve it. Just use the latest canary version. It will fix the issue

Did you use the lastest Canary Android studio? But I can't download the Canary 8 from the website because it always provides the windwows version for me.

@fxckdead
Copy link

Yeah absarrahman I'm not able to get it either. I think @ChristianParraCL is not on the stable release

oh yes, i forgot to mention i'm using Canary releases 💡

@kush-daga
Copy link

Is there anyway to run it without using the canary version?

@frankfuu
Copy link

Thanks @absarrahman, I downloaded android-studio-2021.1.1.8-mac_arm.zip from https://developer.android.com/studio/archive and gained internet connectivity. I used the Pixel 4 on API 30 arm64 image for the emulator.

@edritech93
Copy link

same issue for me, I using Android Studio Arctic Fox | 2020.3.1

@Graunephar
Copy link

Same issue for me. Nothing worked have been on Canary the whole time (on Arctic Fox 2020.3.1). I have tried everything described above with no luck. And deleted and setup countless virtual devices.

Then I tried setting up a Pixel 4 on API 30 arm64 image. And it worked and had internet out of the box.

Thank you for highlighting your solutions @frankfuu and @edritech93

@lordrians
Copy link

Has there been a proper fix for this yet?

My config is listed below and no love :(

Download file - android-studio-2020.3.1.22-mac_arm.zip
Android Studio version - Artic Fox 2020.3.1
Emulator version - 30.7.4-7453540
Device - Pixel 4 API 31
System image - arm64-v8a

Screen Shot 2021-08-12 at 9 37 58 pm

Thanks so much, i solve it with your config

@narimetisaigopi
Copy link

Delete Emulator and Update "Android Emulator" from SDK manager.
it is working fine for me
Screenshot_1629775721

@ahmetyasirkilic
Copy link

ahmetyasirkilic commented Aug 28, 2021

I just reinstalled the Android Studio, and now 30.7.4 is selected in emulator.

* rm -Rf /Applications/Android\ Studio.app
  rm -Rf ~/Library/Preferences/AndroidStudio*
  rm -Rf ~/Library/Preferences/com.google.android.*
  rm -Rf ~/Library/Preferences/com.android.*
  rm -Rf ~/Library/Application\ Support/AndroidStudio*
  rm -Rf ~/Library/Logs/AndroidStudio*
  rm -Rf ~/Library/Caches/AndroidStudio*
  rm -Rf ~/.AndroidStudio*
  rm -Rf ~/AndroidStudioProjects
  rm -Rf ~/.gradle
  rm -Rf ~/.android
  rm -Rf ~/Library/Android*

Thanks, this worked for me. and i installed new version. Android Studio Bumblebee (2021.1.1) Canary 10 https://developer.android.com/studio/archive

@sankalpsans
Copy link

Here is something which worked for me:

  1. Wipe data
  2. Cold boot now.

Screen Shot 2021-10-18 at 7 42 56 PM

@gouravkhunger
Copy link

Here is something which worked for me:

  1. Wipe data
  2. Cold boot now.

Screen Shot 2021-10-18 at 7 42 56 PM

Thanks a lot, this worked!

@purutechno
Copy link

purutechno commented Dec 11, 2021

A workaround is :

  • Check for IDE update [ If Available update the IDE ],
  • Go to AVD -> Install the latest arm64 ( API32 release ) ,
    Restart the IDE -> Open Android Emulator and BAM! [ Simply works ]

And if you're on hotspot from iphone then switch to iphoneUSB.

@joshuapinter
Copy link

And if you're on hotspot from iphone then switch to iphoneUSB.

This is the one. I was running on my iPhone's hotspot because I'm at my in-laws and their internet is shit. Changed back to their Wifi and it worked again. Very interesting. Thanks!

@SufianBabri
Copy link

I tried the solution above but unfortunately, it didn't work.

I followed this article and added DNS 8.8.8.8 and 8.8.4.4 in System Preferences > Network.

The Internet is now working fine on the Emulator.

@HackX-IN
Copy link

I tried the solution above but unfortunately, it didn't work.

I followed this article and added DNS 8.8.8.8 and 8.8.4.4 in System Preferences > Network.

The Internet is now working fine on the Emulator.

this works fine for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests