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

aapt2 / ResourceProcessorBusyBox build errors #10079

Closed
jin opened this issue Oct 21, 2019 · 4 comments
Closed

aapt2 / ResourceProcessorBusyBox build errors #10079

jin opened this issue Oct 21, 2019 · 4 comments
Assignees
Labels
P2 We'll consider working on this in future. (Assignee optional) stale Issues or PRs that are stale (no activity for 30 days) team-Android Issues for Android team type: bug

Comments

@jin
Copy link
Member

jin commented Oct 21, 2019

Reported internally when using Bazel.

> ResourceProcessorBusyBox failed: error executing command
> bazel-out/host/bin/external/bazel_tools/src/tools/android/java/com/google/devtools/build/android/ResourceProcessorBusyBox
> --tool MERGE_COMPILED -- --classJarOutput ... (remaining 13 argument(s)
> skipped)
>
> Use --sandbox_debug to see verbose messages from the sandbox
> Oct 21, 2019 2:20:07 PM
> com.google.devtools.build.android.AndroidCompiledResourceMergingAction main
> SEVERE: Unexpected
> java.lang.IllegalArgumentException
> at
> com.google.common.base.Preconditions.checkArgument(Preconditions.java:127)
> at
> com.google.devtools.build.android.AndroidCompiledDataDeserializer.readResourceTable(AndroidCompiledDataDeserializer.java:251)
> at
> com.google.devtools.build.android.AndroidCompiledDataDeserializer.read(AndroidCompiledDataDeserializer.java:688)
> at
> com.google.devtools.build.android.SerializedAndroidData.deserialize(SerializedAndroidData.java:105)

and another while building an example app in TensorFlow:

SEVERE: Error during merging
Exception in thread "main" com.google.devtools.build.android.AndroidResourceMerger$MergingException: Merging Error:

Caused by: com.google.devtools.build.android.DeserializationException: aapt2 version mismatch.

These were fixed by updating the build tools version to 29.0.x.

@jin jin added team-Android Issues for Android team untriaged labels Oct 21, 2019
@jin jin self-assigned this Oct 22, 2019
@donaldchai
Copy link
Contributor

Bazel assumes a build of aapt2 which includes:

aosp-mirror/platform_frameworks_base@0045116

@hevrard
Copy link
Contributor

hevrard commented Oct 22, 2019

I had a similar issue, updating the Android SDK build-tools to a more recent version (I guess recent enough to get an aapt2 build which has the change pointed out by @donaldchai) fixed it. To install e.g. the recent 29.0.2 version of build-tools:

$ANDROID_SDK_HOME/tools/bin/sdkmanager install 'build-tools;29.0.2'

@jin
Copy link
Member Author

jin commented Oct 23, 2019

Current status: waiting for new CI images to roll out 29.0.2 build tools bazelbuild/continuous-integration#856 so we can run global downstream tests to see an approximation of breakages.

@ahumesky ahumesky added P2 We'll consider working on this in future. (Assignee optional) type: bug and removed untriaged labels Dec 3, 2020
@sgowroji sgowroji added the stale Issues or PRs that are stale (no activity for 30 days) label Feb 13, 2023
@sgowroji
Copy link
Member

Hi there! We're doing a clean up of old issues and will be closing this one. Please reopen if you’d like to discuss anything further. We’ll respond as soon as we have the bandwidth/resources to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 We'll consider working on this in future. (Assignee optional) stale Issues or PRs that are stale (no activity for 30 days) team-Android Issues for Android team type: bug
Projects
None yet
Development

No branches or pull requests

5 participants