Android + Kotlin + Hilt + multi-module app: cannot access application class from a module
I'm developing a multi-module app -too have a clear separation of concerns- with Kotlin in which I'm trying to implement Hilt -to also decouple- and I'm having problems accessing application class from modules.
First, the structure of my app:
app
|- Common
|- Core
|- DTO
|- Repository
The relation between modules:
app > Sees "Common", "DTO" and "Core".
|- Common > Sees "DTO".
|- Core > Sees "Common".
|- DTO
|- Repository > Sees "Common" and "DTO".
Well, all modules...