Hello, error when trying to use a class from another module:
e: /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?