bazelbuild / examples

Examples for Bazel
http://bazel.build
Apache License 2.0
840 stars 515 forks source link

[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 5 months ago

sgowroji commented 5 months ago

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