Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apart from emulator, is android studio working fine in M1 macs

I currently have a windows laptop with an intel i5. I am looking to upgrade to an M1 mac. Emulation isn't a problem for me(Virtualization is slower on ARM). Can any early adopter let me know if it is fast enough for basic android development and some Xcode?

like image 444
Srivatsav Kannan Avatar asked Nov 19 '20 06:11

Srivatsav Kannan


People also ask

Does Android Studio work on M1 Macs?

Android Studio is not M1 Optimized Yet The Software that runs on M1 Chip is no longer Intel Chip, and hence need to be M1 Optimized first. However, when we checked the latest Android Studio 4.1. 3 and Android Studio Preview 2002.1. 3 (Canary 14), it is still based on Intel architecture as shown below.

Is Apple M1 good for Android development?

MacBook Air with M1 would be enough for the majority of mobile developers. However, I'd recommend buying the one with 16 GB of RAM. That way, you'd be able to build apps for both Android and iOS as well as try out cross-platform development (Kotlin Multiplatform, Flutter).

Does emulator work on M1 Mac?

Native Apple Silicon Emulators Are Now Available. When the M1 chip first launched in 2020, very few emulators had native Apple Silicon versions available.

Does Android Studio work on Mac?

To install Android Studio on your Mac, proceed as follows: Launch the Android Studio DMG file. Drag and drop Android Studio into the Applications folder, then launch Android Studio. Select whether you want to import previous Android Studio settings, then click OK.


2 Answers

Available on Android Studio Arctic Fox (Beta)

The Beta version (Arctic Fox Beta 4) now has Apple Silicon support, so you can download it from Android Studio download archives. Look for, for example: Mac (Apple Silicon): android-studio-2020.3.1.19-mac_arm.zip (955253378 bytes). Don't use jetbrains toolbox because it is bit buggy, it downloaded an outdated version of Android Studio. I've noticed its also a day late on releases.


Serious performance issues (before May 2021)

I've tried to use Android Studio for the past couple of months, and to me, it is unusable, let alone at parity with running it on Intel. I've always been on the Canary version too. I keep telling myself the M1 is faster, but I in reality I only notice speed reduction and freezes when compared to MacBook Pro 16" 2020 2.3GHz 8‑core Intel Core i9 or my Intel i7-9700K Hackintosh. I also use a physical device to dedicate more mac resources to the IDE.

  • Very slow indexing/ navigation around the code base
  • Very slow typing and clicking sometimes (general lag)
  • Random freezes which require app restart
  • The compile times are the least of my worries (see bottom section).

Unfortunately, it is still very slow. Here I measure how long ./gradlew assembleDebug takes after a warm up of the same (./gradle assembleDebug):

  • MacBook Pro 2.3GHz 8‑core Intel Core i9 VS. Mac M1 Mini
  • 3 minutes and 1 second VS. 4 minutes and 46 secinds
  • CPU Temperatures: 88 to 92C(+hot air blowing out 😅) VS. 41 to 45C

M1 chips are cool (in a temperature sense), but currently slow. I'll update when a Apple Silicon optimized Android Studio comes out.

like image 96
Ben Butterworth Avatar answered Nov 09 '22 23:11

Ben Butterworth


I've been using a Macbook Pro with M1 for Android development in Android Studio for the past few days. It does feel a little slow at times, but the fact that it was never an incredibly smooth application to begin with (on my old 13" MacBook Pro anyway) means it's not much different. Also, since it's under Rosetta 2 at the moment I'm pretty happy with the performance.

I'd say if you're not working on anything critical then it's fine. However, I'd still be wary of recommending it to people who need a reliable solution for work and if you need the Android emulator you're out of luck completely as you need to rely on a dedicated device.

like image 38
Jas.N Avatar answered Nov 09 '22 23:11

Jas.N