bazelbuild / examples

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

[Bazel CI] [ANDROID\_RULES] aar_embedded_proguard_extractor target cannot be resolved with Bazel@HEAD #478

Closed sgowroji closed 5 months ago

sgowroji commented 5 months ago

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/3958#01906c76-da29-49c2-bbab-70cfe9fcf2f3

Platform: MacOS

Logs:

ERROR: /private/var/tmp/_bazel_buildkite/9891563fb7cb023555fd94460fc5b14e/external/bazel_tools/tools/android/BUILD: no such target '@@bazel_tools//tools/android:aar_embedded_proguard_extractor': target 'aar_embedded_proguard_extractor' not declared in package 'tools/android' defined by /private/var/tmp/_bazel_buildkite/9891563fb7cb023555fd94460fc5b14e/external/bazel_tools/tools/android/BUILD
ERROR: /private/var/tmp/_bazel_buildkite/9891563fb7cb023555fd94460fc5b14e/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_proguard_extractor', but this target could not be found because of: no such target '@@bazel_tools//tools/android:aar_embedded_proguard_extractor': target 'aar_embedded_proguard_extractor' not declared in package 'tools/android' 

Culprit:

Steps:

 git clone https://github.com/bazelbuild/examples
git reset 4d9f5e6c1332ac902a0798b634c67fda4ec5c43b  --hard
export USE_BAZEL_VERSION=3f93d377d036d773fd505a18e084425a00fb94ea
bazel build  //app/src/main:app 

CC Greenteam @meteorcloudy

sgowroji commented 5 months ago

Dupe #475