-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Android public.xml
dimen resource crash
#5077
Comments
You're running into two issues here. First, our code seems to have a bug where it won't process a public XML file correctly if it has no entries. I'll put in a fix for that. However, even with that fix, this sort of public XML file is a feature from Gradle that isn't currently supported in Bazel. Even if we handled it properly here (you could work around it here, for example, by adding an entry to the public.xml file), aapt wouldn't be able to deal with it. |
This should provide more understandable behavior in the case described in #5077 RELNOTES: none PiperOrigin-RevId: 193968203
@asteinb will this comit be available in the 0.13 release? |
0.13.0 baseline has been cut, but I'll ask for this commit to be cherrypicked. |
This should provide more understandable behavior in the case described in #5077 RELNOTES: none PiperOrigin-RevId: 193968203
This should provide more understandable behavior in the case described in #5077 RELNOTES: none PiperOrigin-RevId: 193968203
This should provide more understandable behavior in the case described in #5077 RELNOTES: none PiperOrigin-RevId: 193968203
Closing this issue as the commit has been cherry picked into 0.13.0. |
This should provide more understandable behavior in the case described in #5077 RELNOTES: none PiperOrigin-RevId: 193968203
This should provide more understandable behavior in the case described in bazelbuild/bazel#5077 RELNOTES: none PiperOrigin-RevId: 193968203
Description of the problem / feature request:
When building an Android library that also provides a
public.xml
file, the resource merging action will crash with a NullPointerException with:Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
I have constructed a repro project at https://github.com/menny/bazel_android_public_dimen
running
bazel build //:hello_world
will result in a Bazel crash.What operating system are you running Bazel on?
macoOS
What's the output of
bazel info release
?release 0.12.0- (@Non-Git)
If
bazel info release
returns "development version" or "(@Non-Git)", tell us how you built Bazel.I built it locally by fetching the
0.12
tag and calling./compile.sh
Have you found anything relevant by searching the web?
I have not seen any similar issues.
The text was updated successfully, but these errors were encountered: