So, you want to do some Android development on Asahi Linux, but figured out that Android Studio isn't compatible with aarch64?
Well, worry not, it actually works but needs some jedi tricks.
First, follow the instructions on this blog post (except the last part, it's not required)
It'll mostly work, but you need to:
- Do not select the Android emulator. Just get a real phone for development, I guess...
- You need to download and add the skiko library into the right path
For the Skiko part, here's what I did:
cd ~/Android/
mkdir skiko
wget https://github.com/JetBrains/skiko/releases/download/v0.9.39/skiko-awt-runtime-linux-arm64-0.9.39.jar
unzip skiko-awt-runtime-linux-arm64-0.9.39.jar
cp libskiko-linux-arm64.so ../android-studio/lib/skiko-awt-runtime-all/Then, I restarted Android Studio, and stuff that wasn't working (random dialogs) started to work :)!