bazelbuild / examples

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

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

Open sgowroji opened 2 weeks ago

sgowroji commented 2 weeks ago

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

Platform: MacOS

Logs:

ERROR: /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: /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: Analysis of target '//app/src/main:app' failed; build aborted: Analysis failed
ERROR: Build did NOT complete successfully
FAILED: 
FAILED: 
Error: The command exited with status 1
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