android_library fails on a resource file whose name ends in a period
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- android, java
- Domain
- build-system, mobile
Research direction
Start by reproducing the minimal android_library example with res/raw/foo. and observe the aapt2 output and missing raw_foo..flat diagnostic. Trace how resource_files names are passed through Android resource compilation, then verify that a trailing-period resource is handled correctly or produces a clearer error.
Written by the indexing model from the issue text.
Description
A resource file whose name ends in a period fails to compile.
Minimal repro:
$ touch res/raw/foo.
android_library(
name = "lib",
manifest = "AndroidManifest.xml",
resource_files = ["res/raw/foo."],
)
java.lang.IllegalArgumentException: .../raw_foo..flat does not exist after aapt2 ran.
I think we can have a better diagnositic info or treat the name correctly like AGP?
- Dominant language
- Java
- Stars
- 203
- Forks
- 95
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from bazelbuild/rules_android
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
bazelbuild/rules_android#539 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
bazelbuild/rules_android#535 · 2 reactions ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
bazelbuild/rules_android#485 · 4 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
bazelbuild/rules_android#560 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
bazelbuild/rules_android#558 ·
All issues in bazelbuild/rules_android
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100