Loboda Deni
07/31/2020, 7:20 AMe: /home/StudioProjects/sample-multimodule/f_main/src/main/java/com/company/projectName/feature/main/home/HomeViewModel.kt: (4, 39): Unresolved reference: di
in my vm class:
package com.company.projectName.feature.main.home
import com.company.projectName.domain.di.DomainModule
class HomeViewModel() : HomeContract.ViewModel {
val x = DomainModule.get()
}
I connected the module in dependencies:
dependencies {
applyDependencies(depends)
implementation(project(":domain"))
}
and when writing the code, all references to the classes of this module work, but errors occur during assembly. while in the app
module the link to this class works. what do you think could be the problem?Loboda Deni
07/31/2020, 7:22 AMLoboda Deni
07/31/2020, 7:30 AMLoboda Deni
07/31/2020, 7:41 AMLoboda Deni
07/31/2020, 7:41 AM