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] no such target '@@bazel_tools//tools/android:aar_embedded_jars_extractor': and not declared in package 'tools/android' Error with Bazel@HEAD #475

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

Comments

@sgowroji
Copy link
Member

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3934#019033d2-a8bc-444a-9657-1dc8b059b1b1

Platform: Ubuntu

Logs:

 ERROR: /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/c5ff7580cecd020a61806ba6f8f0ffe4/external/bazel_tools/tools/android/BUILD: no such target '@@bazel_tools//tools/android:aar_embedded_jars_extractor': target 'aar_embedded_jars_extractor' not declared in package 'tools/android' defined by /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/c5ff7580cecd020a61806ba6f8f0ffe4/external/bazel_tools/tools/android/BUILD
(04:09:17) ERROR: /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/c5ff7580cecd020a61806ba6f8f0ffe4/external/rules_android/toolchains/android/BUILD:21:18: every rule of type android_toolchain implicitly depends upon the target '@@bazel_tools//tools/android:aar_embedded_jars_extractor', but this target could not be found because of: no such target '@@bazel_tools//tools/android:aar_embedded_jars_extractor': target 'aar_embedded_jars_extractor' not declared in package 'tools/android' defined by /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/c5ff7580cecd020a61806ba6f8f0ffe4/external/bazel_tools/tools/android/BUILD
(04:09:17) ERROR: Analysis of target '//app:app' failed; build aborted: Analysis failed
(04:09:17) INFO: Elapsed time: 1.614s, Critical Path: 0.03s
(04:09:17) INFO: 1 process: 1 internal.
(04:09:17) ERROR: Build did NOT complete successfully
(04:09:17) FAILED:

Culprit:

Steps:

git clone https://github.com/bazelbuild/examples
git reset 4d9f5e6c1332ac902a0798b634c67fda4ec5c43b  --hard
export USE_BAZEL_VERSION=880c17c67a9b4e17e9753a5c6e2a759bff5a2cfe
bazel build //app: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