bazelbuild / rules_android_ndk

Apache License 2.0
32 stars 15 forks source link

[Bazel CI] Error : Compilation failed due to missing `AndroidBinaryNativeLibsInfo` definition #83

Open sgowroji opened 1 month ago

sgowroji commented 1 month ago

CI: https://buildkite.com/bazel/bazel-at-head-plus-downstream/builds/4128#0191f902-53a9-4aa3-99a7-4a901e62e199

Platform: Windows

Logs:

ERROR: C:/b/3gbf6aie/external/rules_android+/rules/reexport_providers.bzl:29:35: name 'AndroidBinaryNativeLibsInfo' is not defined
ERROR: Skipping '//java/com/app:app': error loading package 'java/com/app': at C:/b/3gbf6aie/external/rules_android+/rules/rules.bzl:39:5: at C:/b/3gbf6aie/external/rules_android+/rules/providers.bzl:16:6: compilation of module 'rules/reexport_providers.bzl' failed
ERROR: error loading package 'java/com/app': at C:/b/3gbf6aie/external/rules_android+/rules/rules.bzl:39:5: at C:/b/3gbf6aie/external/rules_android+/rules/providers.bzl:16:6: compilation of module 'rules/reexport_providers.bzl' failed
ERROR: Build did NOT complete successfully
Error: The command exited with status 1
error: exit status 1

Culprit:

Steps:

 git clone https://github.com/bazelbuild/rules_android_ndk
git reset cb776db8e671084669f141d2003e1b61c1a7d21b  --hard
export USE_BAZEL_VERSION=7b8d07253adf84d5e3d46ac915a1440e518fab3c
bazel build //java/com/app:app 

CC Greenteam @comius

ahumesky commented 1 month ago

I think we just need to update the examples in the repo to use the latest rules_android

ahumesky commented 1 month ago

I believe this will fix the issue here: https://github.com/bazelbuild/rules_android_ndk/pull/84, however there are a few other issues related to moving the android tools out of the bazel repo and into rules_android repo that are also breaking CI, so rules_android_ndk at head bazel might be broken for a bit while we work through these