Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AGulev opened this issue Jan 21, 2025 · 0 comments
Open

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

AGulev opened this issue Jan 21, 2025 · 0 comments

Comments

@AGulev
Copy link

AGulev commented Jan 21, 2025

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.

@AGulev AGulev changed the title aapt2 version inconsistency (can't build apk for API35) Old version of the aapt2 tool (can't build apk for API35) Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant