Tools use the root's protobuf_java, which can be too old for aapt2-proto
Maintainers usually reply within 6 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 42/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- java
- Domain
- build-system
Research direction
Start in src/tools/java/com/google/devtools/build/android/BUILD and find the ResourceProcessorBusyBox target plus the two others that depend on @com_google_protobuf//:protobuf_java. Check how the aapt2-proto classes from @rules_android_maven get their GeneratedMessageV3 dependency. Done means those deps point at @rules_android_maven//:com_google_protobuf_protobuf_java and the tools build and run. The maintainer has not yet confirmed this change, so check with them before opening a PR.
Written by the indexing model from the issue text.
Description
In src/tools/java/com/google/devtools/build/android/BUILD, ResourceProcessorBusyBox and two other targets depend on @com_google_protobuf//:protobuf_java, i.e. whatever protobuf the root module picks. The prebuilt aapt2-proto classes from @rules_android_maven need GeneratedMessageV3, so a root on an older protobuf (4.27) gets a protobuf-java without it and the tools fail at runtime.
Pointing those deps at @rules_android_maven//:com_google_protobuf_protobuf_java (already resolved, 4.28.2) fixes it for us. Same on main and 0.7.3.
Would you take a PR making that the default? Not sure if anything compiled against @com_google_protobuf in the tools would then mismatch, so asking first.
- Dominant language
- Java
- Stars
- 205
- Forks
- 113
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing 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
-
build_java8_legacy_dex.sh does not set JAVA_RUNFILES for the d8/r8 launchersPossibly taken @TrapsterDK claimed this 17 days ago. Open
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bazelbuild/rules_android#599 ·
Maintainers usually reply within 6 days
-
`Desugar` actions don't run on multiplex workersPossibly taken @lukaciko claimed this 46 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
bazelbuild/rules_android#539 · 2 comments ·
Maintainers usually reply within 6 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
bazelbuild/rules_android#535 · 2 reactions ·
Maintainers usually reply within 6 days
-
desugar_globals output is not reproducible (zip entry order varies)Possibly taken @TrapsterDK claimed this 6 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 30/100
bazelbuild/rules_android#610 ·
Maintainers usually reply within 6 days
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
bazelbuild/rules_android#598 · 1 comment ·
Maintainers usually reply within 6 days
All issues in bazelbuild/rules_android
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Lincoln-cn/JAiRouter#1473 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
exercism/java-analyzer#379 ·
-
area: ui bug priority: low
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
tetsuji16/microProject#1893 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
liberation-data/fornax4j#325 ·
Maintainers usually reply within 1 day
-
[Bug]: FE and Kinesis extraction pipes render flow starting at the centre and scroll the source arm backwardsPossibly taken @chonkzillaofficial claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
BCCE-team/BuildCraft#85 ·