Can Android Studio run on M1 Mac?

Learning Android Development

Is Android Development good in M1 MacBook Pro?

Photo by Martin Katler on Unsplash

Late last year, Apple came up with its own Apple M1 Chip MacBook Pro. It’s so exciting as even with the 13.3" device, it seems to outperform much better than its previous generation better devices.

I started Android Studio 4.1 in macOS Big Sure 11.0.1 with new ARM cpu M1

After installing Rosetta: Yes, it builds !

But the Emulator has problems, it shows me CPU does not support VT-x

Even ARM images have this issue

Can Android Studio run on M1 Mac?

I used the most recent, a very old api25 (Google has to do here something) but it's increadible slow

How to make the Emulator work and fast ?

asked Nov 19, 2020 at 7:28

Can Android Studio run on M1 Mac?

hannes achhannes ach

14.8k7 gold badges58 silver badges81 bronze badges

9

Good news !

Edit on 28th of July 2021 🎉 🌈

Apple Silicon Support

Now, there is an arm64 release version available for Android Studio Arctic Fox (2020.3.1) You can download it from here https://developer.android.com/studio#downloads

Easy fix to use right architecture

Tools -> SDK Manager -> SDK Tools (tab) -> Deselect 'Android Emulator' -> OK

Now, when you try to run your app, or launch device from AVD Manager, it will give the 'Install Emulator' error -> Click Ok. This will automatically download the correct version.

Use an arm64-v8a image !

  • Tools -> SDK Manager
  • Install Android 11 (R) or 12.0 (S) and click Apply
  • Tools -> AVD Manager -> click Create Virtual Device
  • Choose any device that has the Google Play Store icon and click Next
  • Choose an arm64-v8a on "Other Images" tab

Can Android Studio run on M1 Mac?

  • When NDK runs into Unknown host CPU architecture: arm64 you can solve it here

  • kapt doesn't work Solved https://stackoverflow.com/a/68285501/1079990

answered Dec 7, 2020 at 6:10

Can Android Studio run on M1 Mac?

hannes achhannes ach

14.8k7 gold badges58 silver badges81 bronze badges

28

This fixed my issue

Tools -> SDK Manager -> SDK Tools (tab) -> Deselect 'Android Emulator' -> OK

Now, when you try to run your app, or launch device from AVD Manager, it will give the 'Install Emulator' error -> Click Ok. This will automatically download the correct version.

answered Oct 27, 2021 at 14:27

Dipanker ShahDipanker Shah

2,4592 gold badges7 silver badges3 bronze badges

5

I've had this problem with my new Macbook Pro M1 Pro (Macbook Pro 2021 14 Inch M1 Pro). after some digging around, the root of the problem was that I have transferred all my data from my old Mac (using Time Machine) which uses Intel (The other Mac is Macbook Pro 2011 13 Inch Intel), so other than a lot of apps which did not run or ran sluggishly and I had to reinstall their ARM version, the Android SDK Tools were transfered too.

So here are the simple steps to the solution:

  1. Launch Android Studio
  2. Select SDK Manager
    Can Android Studio run on M1 Mac?
  3. Go to SDK Tools tab
    Can Android Studio run on M1 Mac?
  4. Untick All the Packages, and keep them in your mind because you will retick them in the next step
  5. You will have a dialog something like this, Select Apply. This way now you've uninstalled the old packages
    Can Android Studio run on M1 Mac?
  6. retick all packages (to reinstall their ARM version) and click apply, this may take some time depending on your internet speed as you are reinstalling all the packages
  7. Try launching the emulator now, if the problem is not fixed, try restarting Android Studio or your laptop completely, My problem was fixed without restarting though

answered Mar 25 at 17:11

Can Android Studio run on M1 Mac?

AdnanAdnan

97612 silver badges26 bronze badges

3

Steps to run your Android APP on M1

Finally my Android APP running normally on my M1 chip !

This presume you already have your environment variables set.

  1. Download Android Studio Arctic Fox (2020.3.1) Link (I personally got the last I could September 1, 2021)

  2. Install and open Android Studio

  3. Tools -> SDK Manager

  4. Check the box of Android 12.0 (S) and click Apply

    ... Wait until it's downloaded

  5. Tools -> AVD Manager -> click Create Virtual Device

  6. Choose any device that has the Play button and click Next

  7. Choose the image S. If you can't find it in the Recommended tab click on Other Images

  8. Final step click Next and Finish

You should now be ready to go.

answered Sep 7, 2021 at 12:45

crgcrg

3,9262 gold badges25 silver badges52 bronze badges

1

1. First, delete the android studio completely from your Mac system using the following command one by one:

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 ~/.gradle  
rm -Rf ~/.android  
rm -Rf ~/Library/Android*  
rm -Rf /usr/local/var/lib/android-sdk/

To delete all projects:

rm -Rf ~/AndroidStudioProjects 

2. Download the new Android studio using the below link:

https://developer.android.com/studio#downloads:~:text=android%2Dstudio%2D2021.2.1.15%2Dmac_arm.dmg

3. Now install that software, create an emulator using arm version and open that emulator.

answered Jun 9 at 18:11

Can Android Studio run on M1 Mac?

For me I can run the emulator on my MacBook Pro MacOS Big Sur with ARM CPU M1 only on Android Studio Arctic Fox (2020.3.1 Beta03 and later versions) only after deleting Intel x86 Emulator Accelerator (HAXM installer).

answered Jul 14, 2021 at 7:26

Can Android Studio run on M1 Mac?

1

After I install the latest AndroidStudioPreview for Mac M1, it already included a default simulator with arm64-v8a ABI. However, this simulator still not loaded by AndroidStudio

When I tried to run adb from Terminal, it shows adb: command not found. So I config the adb

  • I set adb environment variable follow this answer
  • After that, when I run adb, I get the error zsh: bad CPU type in executable
  • Then I fix it by softwareupdate --install-rosetta (follow this answer)
  • Restart Terminal, then adb command working well
  • Restart AndroidStudio, then it able to see and run app to simulator

answered Dec 20, 2021 at 2:05

LinhLinh

55.1k23 gold badges254 silver badges267 bronze badges

Now It's available

Apple Silicon Support

Android Studio Arctic Fox Canary 15 contains preliminary support for Apple Silicon (arm64). This version of Android Studio for this platform is still under active development, but we wanted to get a functional version out to the app developer community to get feedback. On top of the Intellij build, design tools work, and the Android Emulator works with API 30 and API S Developer Preview emulator system images.

Click here to Download

answered May 31, 2021 at 8:23

Can Android Studio run on M1 Mac?

PrasathPrasath

1,9444 gold badges18 silver badges50 bronze badges

as @Dipanker Shah reply, unclick the Android Emulator and run the AVD. After that... android studio will pop a warning screen and press OK. IDE will download the correct version.

Unclick the Android Emulator

Can Android Studio run on M1 Mac?

vimuth

4,49921 gold badges72 silver badges110 bronze badges

answered Aug 14 at 3:12

Can Android Studio run on M1 Mac?

2

It is not clear exactly what problems Google has had that they still have no way to release the M1 version. I got the DTK M1 almost a year ago. I think Google got it even earlier. Yes, there was a problem with emulation, but everything else in the IDE could definitely be done.

At least a loner did it without too much trouble. There is roughness, but the speed of work is different from sky and earth. Working with a regular Android Studio on M1 is almost impossible, and even with this refinement amateur, everything flies like lighting.

Here is the link: https://github.com/dsa28s/android-studio-apple-m1

This is an unofficial canary version of Android Studio Arctic Fox with emulators on the Apple Silicon. I'm using it and it works well in most cases.

answered Jun 18, 2021 at 13:37

2

Android Studio now has an official production release that supports the ARM chip. 2020.3.1.26

answered Jan 10 at 9:45

monchisanmonchisan

4898 silver badges23 bronze badges

2

For me none of the solutions worked. Tried Arctic fox, bumblebee and etc. The only thing that worked was the Dolphin canary version. As you install this version, it gives you a default emulator but it's also possible to create a new one without any issue. Of course, there could be issues (because its canary ver.) but I'm happy that I can run something at this point.

answered Feb 10 at 20:09

Can Android Studio run on M1 Mac?

HoonHoon

6175 silver badges10 bronze badges

In the emulator window (when all emulator tabs are closed) click on "Update" link and update developer tools.

answered Feb 12 at 21:41

tatiana_ctatiana_c

9387 gold badges16 silver badges31 bronze badges

When you have this problem now with an M1 or M2 Chip and you have transfered your android studio with the copy-functionality from an old Intel Mac, check that you also uninstall the Haxm-part of the emulator. This was my problem. In my case I also wasn't able to remove that easily,thats why I deleted everything from android studio on my Mac and reinstalled after that. Then everything worked like a charm.

answered Dec 13 at 7:41

Can Android Studio run on M1 Mac?