Hi everyone, how can I use Koin for dependency inj...
# multiplatform
e
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
Where is the error thrown and what does it look like?
e
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:
Unresolved reference 'viewModelOf'.
k
try version v4+. I dont see v3 for koin-compose https://mvnrepository.com/artifact/io.insert-koin/koin-compose?p=2