Package: android-sdk-build-tools
Severity: normal
X-Debbugs-Cc: [email protected]
Dear Maintainer,
I tried to use aapt2 provided by android-sdk-build-tools, but it does
not seem able to parse the android.jar provided by never sdks.
Example of error message
/usr/bin/aapt2 compile --dir app/src/main/res -o build2/res-compiled.zip
/usr/bin/aapt2 link -I
/usr/lib/android-sdk/platforms/android-36/android.jar --manifest
build2/AndroidManifest.xml --min-sdk-version 23 -o build2/apk/base.apk
--auto-add-overlay --java build2/gen --proguard build2/aapt.pro
build2/res-comp
iled.zip
08-26 08:27:22.013 81514 81514 E aapt2 : LoadedArsc.cpp:94
RES_TABLE_TYPE_TYPE entry offsets overlap actual entry data.
08-26 08:27:22.013 81514 81514 E aapt2 : ApkAssets.cpp:149 Failed to
load resources table in APK
'/usr/lib/android-sdk/platforms/android-36/android.jar'.
error: failed to load include path
/usr/lib/android-sdk/platforms/android-36/android.jar.
On the other hand aapt2 provided by
google-android-build-tools-37.0.0-installer
has no issues working with
/usr/lib/android-sdk/platforms/android-36/android.jar
Since aapt2 does not support --help, I'm not sure which version are
provided by the mentioned packages.
-- System Information:
Debian Release: forky/sid
APT prefers testing
APT policy: (400, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 7.1.8+deb14.1-amd64 (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8),
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages android-sdk-build-tools depends on:
pn aapt <none>
pn aidl <none>
pn android-sdk-build-tools-common <none>
pn apksigner <none>
ii google-android-build-tools-37.0.0-installer [zipalign]
37.0.0+1785528795-1
pn split-select <none>
android-sdk-build-tools recommends no packages.
android-sdk-build-tools suggests no packages.