google / google/bundletool

Old version of the `aapt2` tool (can't build apk for API35)

Open
#381 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
4k
Forks
428
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
`aapt2` tool used in `bundletool-all-1.18.0.jar` can't build APK for Android API35

>bundletool-all-1.18.0.jar/macos/aapt2 version
Android Asset Packaging Tool (aapt) 2.19-9193536

>bundletool-all-1.18.0.jar/macos/aapt2 link --proto-format -o ../test/NoExtensions/aab/aapt2/apk/output.apk -I ../bndl/android.jar --manifest ../test/NoExtensions/AndroidManifest.xml --auto-add-overlay -R @../test/NoExtensions/aab/compiled_resources.txt
aapt2 E 01-21 10:49:10 48967 6683595 LoadedArsc.cpp:94] RES_TABLE_TYPE_TYPE entry offsets overlap actual entry data.
aapt2 E 01-21 10:49:10 48967 6683595 ApkAssets.cpp:152] Failed to load resources table in APK '../bndl/android.jar'.
error: failed to load include path ../bndl/android.jar.

But `aapt2` from `build-tools` 35.0.1 works fine:

>/aapt2 version
Android Asset Packaging Tool (aapt) 2.19-12874835

**Bundletool version(s) affected**
Version: 1.18.0

**Stacktrace**
Copy all of the output of the command, including the stacktrace if visible.

**To Reproduce**
Try to build apk using aapt2 tool (see example above)

**Expected behavior**
`bundletool-all-1.*.*.jar` contains `aapt2` tool that works with the latest stable SDK release

**Known workaround**
Use `aapt2` from `build-tools` 35.0.1

**Environment:**
OS: macos 15.2

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.