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

[Bazel CI] Bazel target "aar_resources_extractor" not found in "tools/android" package #474

Open
sgowroji opened this issue Jun 17, 2024 · 0 comments

Comments

@sgowroji
Copy link
Member

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3928#0190245f-5e4f-4dde-8c12-d085e6747b09

Platform: MacOS

Logs:

ERROR: �[0m/private/var/tmp/_bazel_buildkite/5071016040ff010b4018e9e87490029e/external/bazel_tools/tools/android/BUILD: no such target '@@bazel_tools//tools/android:aar_resources_extractor': target 'aar_resources_extractor' not declared in package 'tools/android' defined by /private/var/tmp/_bazel_buildkite/5071016040ff010b4018e9e87490029e/external/bazel_tools/tools/android/BUILD
ERROR: �[0m/private/var/tmp/_bazel_buildkite/5071016040ff010b4018e9e87490029e/external/rules_android~/toolchains/android/BUILD:21:18: every rule of type android_toolchain implicitly depends upon the target '@@bazel_tools//tools/android:aar_resources_extractor', but this target could not be found because of: no such target '@@bazel_tools//tools/android:aar_resources_extractor': target 'aar_resources_extractor' not declared in package 'tools/android' defined by /private/var/tmp/_bazel_buildkite/5071016040ff010b4018e9e87490029e/external/bazel_tools/tools/android/BUILD
ERROR: �[0mAnalysis of target '//app/src/main:app' failed; build aborted: Analysis failed
ERROR: �[0mBuild did NOT complete successfully
FAILED:�[0m 
FAILED:�[0m 
Error: The command exited with status 1�[0m
error: exit status 1

Culprit:

Steps:

git clone https://github.com/bazelbuild/examples
git reset b74ab21eadc941d7a64d7f3791bc50df9ec3398d  --hard
export USE_BAZEL_VERSION=5add0c9d6cf8c848993d47032828a54d32e6e8be
bazel build //app/src/main:app 

CC Greenteam @mai93

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