-
Notifications
You must be signed in to change notification settings - Fork 213
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
Cannot use compiler plugins on Android #319
Comments
You need to use a kt_jvm_import against the raw jar, and then depend on the import target in the |
The "use a java_import" is a default bazel message, which doesn't account for kotlin, sadly. Try using kt_jvm_import. |
Sorry for the super delayed reply, but the |
I'm experiencing the same issue trying to add Anvil to our project. I've tried both referencing the anvil-compiler jar directly, and referencing as a maven dependency. In this case I think we'll need to ultimately reference as a maven dependency, since Anvil has several dependencies of its own. In my closest attempt, I have the anvil_compiler_plugin rule building, but the plugin doesn't run.
|
Still the same issue on 1.4.0-legacy-RC4.
|
Is this still an issue in 2024, or has this been fixed? |
I have the following in my
BUILD
file:When built, this results in:
If I use
java_import
to import the JAR file, then I get:At a glance I can tell this commit is related, but beyond that I'm not sure what's going on. I guess the plugin's jar file is ending up in the deps, but somehow differently than kt_jvm_import normally does?
The text was updated successfully, but these errors were encountered: