Hello, error when trying to use a class from anoth...
# gradle
l
Hello, error when trying to use a class from another module:
Copy code
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:
Copy code
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:
Copy code
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?
if it matters i am using Android Studio 4.2 version Canary 7
also this behavior is observed only when using kts assembly scripts
I'm sorry, I forgot to connect the Kotlin plugin to the rest of the modules
the question is closed