Here's a log [1] from the android build of aapt / libaapt, very useful for comparison.
[1]: http://sprunge.us/CYJL On Tue, 14 Jun 2016 17:32:37 +0530 Chirayu Desai <chir...@cdesai.in> wrote: > Package: aapt > Version: 1:6.0.1+r43-1 > Severity: important > > Dear Maintainers, > > I'm trying to use aapt to package an android app, but it fails to do so. > I've tried this by running 'gradle build' with a sample app I have at [1], > and also with 'apktool' by running 'apktool build' > > 'gradle build --debug' output: > 17:17:15.754 [ERROR] [org.gradle.BuildExceptionReporter] * What went wrong: > 17:17:15.754 [ERROR] [org.gradle.BuildExceptionReporter] Execution failed for > task ':processDebugResources'. > 17:17:15.754 [ERROR] [org.gradle.BuildExceptionReporter] > > com.android.ide.common.process.ProcessException: > org.gradle.process.internal.ExecException: Process 'command > '/usr/lib/android-sdk/build-tools/23.0.2/aapt'' finished with non-zero exit > value 134 > > Running 'gradle build --stacktrace' gives the aapt command used, which is: > /usr/lib/android-sdk/build-tools/23.0.2/aapt package -f --no-crunch -I > /usr/lib/android-sdk/platforms/android-23/android.jar -M > /mnt/debian/apps/HelloWorld/build/intermediates/manifests/full/debug/AndroidManifest.xml > -S /mnt/debian/apps/HelloWorld/build/intermediates/res/merged/debug -A > /mnt/debian/apps/HelloWorld/build/intermediates/assets/debug -m -J > /mnt/debian/apps/HelloWorld/build/generated/source/r/debug -F > /mnt/debian/apps/HelloWorld/build/intermediates/res/resources-debug.ap_ > --debug-mode --custom-package org.hello -0 apk --no-version-vectors > > Running that manually results in: > $ aapt ... > Aborted > > Running it with 'strace' shows: > < initial output: http://ix.io/SAr> > open("/mnt/debian/apps/HelloWorld/build/intermediates/manifests/full/debug/AndroidManifest.xml", > O_RDONLY) = 4 > read(4, "<?xml version=\"1.0\" encoding=\"ut"..., 16384) = 618 > close(4) = 0 > rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0 > tgkill(1970, 1970, SIGABRT) = 0 > --- SIGABRT {si_signo=SIGABRT, si_code=SI_TKILL, si_pid=1970, si_uid=1000} --- > +++ killed by SIGABRT +++ > > This bug affects the packages 'android-sdk' as well as 'apktool', as neither > will be able to be fully used due to this. > > [1]: https://gitlab.com/cde/AndroidHelloWorld > > -- System Information: > Debian Release: stretch/sid > APT prefers unstable > APT policy: (500, 'unstable') > Architecture: amd64 (x86_64) > > Kernel: Linux 4.6.0-1-amd64 (SMP w/8 CPU cores) > Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8) > Shell: /bin/sh linked to /bin/dash > Init: systemd (via /run/systemd/system) > > Versions of packages aapt depends on: > ii android-libaapt 1:6.0.1+r43-1 > ii android-libutils 1:6.0.1+r43-1 > ii libc6 2.22-11 > ii libgcc1 1:6.1.1-6 > ii libstdc++6 6.1.1-6 > > aapt recommends no packages. > > aapt suggests no packages. > > -- no debconf information >