I'm trying to convert one class file in one of our modules in our application from java to Kotlin but I get this error message when trying to build.
The line that causes this error is using dagger @Inject
removing @Inject
will make the error go away.
* What went wrong:
Execution failed for task 'processX86DebugAnnotationsWithJavac'.
> java.lang.IllegalArgumentException: @kotlin.Metadata does not define an element k()
Our main module that uses this module is written completely in Java and has no Kotlin related code in it.
Any suggestions?