I am getting an error trying to build a project. The build scan is here: Build Scan® | Develocity I am wondering: is this because I am on a ARM64 Linux (a Raspberry Pi 5)? The Android Studio tarball contained severay x86_64 binaries – does that matter?
I did some poking around and found ~/.gradle/daemon/9.6.1/daemon-39198.out.log and in this file I found the line:
AAPT2 aapt2-9.2.1-15009934-linux Daemon #0: Unexpected error output: /home/heller/.gradle/caches/9.6.1/transforms/2c619a1c0a1256fcab85df177644c10d/transformed/aapt2-9.2.1-15009934-linux/aapt2: 1: Syntax error: ")" unexpected
Then I check the aapt2 file:
marchhare% file /home/heller/.gradle/caches/9.6.1/transforms/2c619a1c0a1256fcab85df177644c10d/transformed/aapt2-9.2.1-15009934-linux/aapt2
/home/heller/.gradle/caches/9.6.1/transforms/2c619a1c0a1256fcab85df177644c10d/transformed/aapt2-9.2.1-15009934-linux/aapt2: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, BuildID[md5/uuid]=c1d5f567fb58bad9ad0f1327dacb426c, not stripped
This is not going to work on my machine:
marchhare% uname -a
Linux marchhare 6.12.93+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.12.93-1+rpt1 (2026-06-12) aarch64 GNU/Linux
Is there a ARM64 version of Gradle? The x86_64 version is NOT going to work on my RPi5!
OK, it looks like the problem is the Linux Android SDK – it only supports x86_64 Linux. And there does not appear to be a current ARM64 release, which means I cannot build Android apps on my Linux box. I have an old MacBook (2013 vintage). Maybe that might work…
A quick googling suggests that there are several things you could try like emulating using qemu-user and binfmt, compiling aapt2 from source, downloading phone someone provides prebuilt, or using the version of your package manager if there is one by configuring a project property with its path.
But yeah, as you observed, this is not really a Gradle topic so much. ![]()