0

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?

0

1 Answer 1

1

Solved! I was adding Kotlin standard library to the the module that uses the Kotlin but not in the module that was using this module. Adding the library to the main module as well solved the issue.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.