android-emulator-m1-preview icon indicating copy to clipboard operation
android-emulator-m1-preview copied to clipboard

No internet access

Open Florian-crg opened this issue 4 years ago • 36 comments

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

Florian-crg avatar Mar 15 '21 13:03 Florian-crg

help please

hdarioDev avatar Mar 21 '21 02:03 hdarioDev

https request are failing, please response

nahidmbstu avatar Mar 21 '21 07:03 nahidmbstu

getting the same issue...SOS

vanditmehta avatar Jun 14 '21 13:06 vanditmehta

+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

Artyom873 avatar Jun 17 '21 19:06 Artyom873

+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.

HugoLuna5 avatar Jun 18 '21 07:06 HugoLuna5

+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

Artyom873 avatar Jun 18 '21 08:06 Artyom873

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

sukhcha-in avatar Jun 18 '21 18:06 sukhcha-in

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

Artyom873 avatar Jun 18 '21 20:06 Artyom873

@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

sukhcha-in avatar Jun 19 '21 10:06 sukhcha-in

@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.

Artyom873 avatar Jun 19 '21 10:06 Artyom873

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*

rusakovic avatar Jun 22 '21 09:06 rusakovic

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!

jemmyn avatar Jun 23 '21 16:06 jemmyn

image

cikichen avatar Jul 28 '21 08:07 cikichen

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

blackpantific avatar Aug 05 '21 18:08 blackpantific

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

frankfuu avatar Aug 12 '21 13:08 frankfuu

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

ChristianParraCL avatar Aug 13 '21 02:08 ChristianParraCL

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

absarrahman avatar Aug 13 '21 05:08 absarrahman

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

frankfuu avatar Aug 13 '21 06:08 frankfuu

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 avatar Aug 13 '21 06:08 absarrahman

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

absarrahman avatar Aug 13 '21 07:08 absarrahman

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.

Qiubeijun avatar Aug 13 '21 09:08 Qiubeijun

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 💡

fxckdead avatar Aug 13 '21 13:08 fxckdead

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

kush-daga avatar Aug 14 '21 11:08 kush-daga

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.

frankfuu avatar Aug 17 '21 03:08 frankfuu

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

edritech93 avatar Aug 17 '21 14:08 edritech93

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

Graunephar avatar Aug 18 '21 09:08 Graunephar

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

lordrians avatar Aug 18 '21 15:08 lordrians

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

narimetisaigopi avatar Aug 24 '21 03:08 narimetisaigopi

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

ahmetyasirkilic avatar Aug 28 '21 21:08 ahmetyasirkilic

Here is something which worked for me:

  1. Wipe data
  2. Cold boot now.

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

sankalpsans avatar Oct 18 '21 14:10 sankalpsans