Had anyone a success with using Room with multi-module Android?
Whenever I have all my Entities classes in my main module everything compiles properly.
When I move any entity class (e.g. Person.kt
) to domain module that the main module is based on, the compilation of the entire project fails.
It seems not to find the file that was generated (Person.java
) that is located now in the domain module.
I use the kotlin-kapt
plugin in both modules and it generates the proper file, but for some reason, it is not picked up by the main module.