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

android_library doesn't recognizes CcInfo #9079

steeve opened this issue Aug 5, 2019 · 2 comments

android_library doesn't recognizes CcInfo #9079

steeve opened this issue Aug 5, 2019 · 2 comments


Copy link

@steeve steeve commented Aug 5, 2019

Description of the problem / feature request:

android_library doesn't recognizes CcInfo and complains that it only wants cc_library.

Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

  • Return CcInfo from a rule
  • Add that rule as a deps of an android_library

What operating system are you running Bazel on?


What's the output of bazel info release?


Any other information, logs, or outputs that you want to share?

The current work around is to create an intermediate cc_library

    name = cc_library_name,
    deps = [rule_that_returns_cc_info],
    name = android_library_name,
    deps = [cc_library_name],

I do think that java_library properly consumes CcInfo, however.


This comment has been minimized.

Copy link

@gyias gyias commented Nov 14, 2019

This is fixed now, with 1.2 release. Closing.

@gyias gyias closed this Nov 14, 2019

This comment has been minimized.

Copy link
Contributor Author

@steeve steeve commented Nov 14, 2019

Awesome thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
4 participants
You can’t perform that action at this time.