Does an Android Studio Linux arm64 version exist?
I think now is a good time to support it since the new Mac M1 machine is arm64 and some work is being done to run Linux on top of it.
Also I am developing with Flutter which (as far as I understand) already supports Linux arm64.
But I can't find any GitHub repository for Android Studio to request support. Is there any?
More people that asked on other forums:
On Reddit.
And another one on Reddit.
Chromebook is based on Linux, so here is one for installation on Reddit.
I didn’t find anything official, but I could run the full Android Studio (AS) on my cellphone and tablet with Linux ARM64 (aarch64) sideloaded with Termux. And I worked on several projects from my phone.
I'm making a YouTube video explaining all the process, but it is quite simple.
On most operating systems, Android Studio is running on top of Java 17 (ago 2023), so you just need to download the Linux version of Android Studio and replace de "jbr" folder with any OpenJDK 17.
When you open AS for the first time, it will try to download the SDK packages, but it will fail because the emulator for aarch64 exists, but we don’t need it. So you just have to add some fake emulator files to ANDROID_SDK_HOME/emulator and it’s done. I have a ZIP file with some files here: https://drive.google.com/file/d/17BuoXgtLG33tkgePLyWerfuzMcILtYtU/view?usp=drivesdk
To replace the emulator in my case, use adb connect localhost (or with Wi-Fi pairing), because Android Studio is literally running on an Android Device. But you can connect with any device by the network.
With this, you have your Android Studio running.
But, in my projects, ADB, appt2 and other build tools do not work, so... you have to compile yourself. But like Pritesh said, by community effort, we have all tools for build tools 33.0.3 built at the release page for Android SDK tools.
After download, you need to replace the build-tools binaries that AS downloads for those on the repository above.
The problem is, especially for the aapt2 (Android Asset Packing Tool) that "creates APK files" is downloaded by Gradle on demand. so... we need to force Gradle to use a specific binary. Just put on or create a gradle.properties file with:
android.aapt2FromMavenOverride=/YOUR_ANDROID_SDK_PATH/build-tools/aapt2
For now, the only thing that is not working for me, is the Compose Layout Preview. The plugin seems to be native code (it is the only explanation for me).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With