Hi everyone, how can I use Koin for dependency injection in viewmodel?
I have tried to install :
• io.insert-koinkoin compose3.5.3
• io.insert-koinkoin androidx compose3.5.3
But it doesn't work, it throws an error...
Any suggestions or help???
h
hallvard
08/07/2025, 9:47 AM
Where is the error thrown and what does it look like?
e
Excellence kawej
08/07/2025, 10:07 AM
Copy code
Could not resolve io.insert-koin:koin-androidx-compose:3.5.3 in kotlin multiplatform project
Copy code
Could not resolve all files for configuration ':shared:iosArm64CInterop'. > Could not find io.insert-koin:koin-compose:3.5.3. In Kotlin multiplatform project
And when I try to call the
viewModelOf
function, the reference isn't resolved, as shown by this. error: