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] Error : Compilation failed due to missing AndroidBinaryNativeLibsInfo definition #83

Open
sgowroji opened this issue Sep 16, 2024 · 2 comments · May be fixed by #84
Open

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

sgowroji opened this issue Sep 16, 2024 · 2 comments · May be fixed by #84

Comments

@sgowroji
Copy link
Member

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

Platform: Windows

Logs:

ERROR: �[0mC:/b/3gbf6aie/external/rules_android+/rules/reexport_providers.bzl:29:35: name 'AndroidBinaryNativeLibsInfo' is not defined
ERROR: �[0mSkipping '//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: �[0merror 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: �[0mBuild did NOT complete successfully
Error: The command exited with status 1�[0m
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
Copy link
Collaborator

ahumesky commented Sep 16, 2024

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

ahumesky added a commit to ahumesky/rules_android_ndk that referenced this issue Sep 16, 2024
@ahumesky ahumesky linked a pull request Sep 16, 2024 that will close this issue
@ahumesky
Copy link
Collaborator

ahumesky commented Sep 16, 2024

I believe this will fix the issue here: #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

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

Successfully merging a pull request may close this issue.

2 participants