Android Studio Linux ARM support missing

Any ideas why Google lacks support for Linux ARM combo in the Android Studio?


Note: Linux machines with ARM-based CPUs aren’t currently supported.

You can get it to work but it’s not trivial, I mean to make a write up at some point but I don’t have the time right now.

Basically Android Studio, Gradle, and the Java compiler all run on top of Java, so you can run it with openjdk provided by your distro. There are some native tools that you need to build from source.

aapt2 is the most painful of these. It is open source but it has hundreds of compiler errors that you need to fix first. Google must have some bespoke build environment for these tools that they are hiding somewhere (no it doesn’t build against AOSP’s headers either).

If you want NDK, then you also need to build cmake 3.18.1 from source (although tbf you need to do that on x86_64 linux as well because the version provided by google is just broken), and I also build cmake although in retrospect I’m not sure that was necessary. These tools do compile and have clear build instructions.

You also need adb but there’s a fedora package that provides that for aarch64.

I have no clue how to get the emulator working although according to the documentation that is supported on aarch64.

1 Like

Ah, so these compiler errors are not just something I’m doing wrong? Good to know :slight_smile:
I’d be very interested in that write-up! I’ve been trying to use the work at GitHub - nmeum/android-tools: Unoffical CMake-based build system for android command line utilities and Releases · lzhiyong/android-sdk-tools · GitHub as inspiration to work out how to build aapt2 and friends for Asahi Linux, but as you said, lots of compilation errors…

Also - there is a feature request open on the google issue tracker to add support for arm64 linux - might be worth to vote?

1 Like