icerockdev / moko-mvvm

Model-View-ViewModel architecture components for mobile (android & ios) Kotlin Multiplatform development
https://moko.icerock.dev/
Apache License 2.0
997 stars 95 forks source link

Error while put my viewModel to MvvmActivity #77

Closed samuelhalim1 closed 3 years ago

samuelhalim1 commented 3 years ago

i dont know what to do anymore right now.. i already follow the installation step by step.. until this step..

error

Help me, please

Alex009 commented 3 years ago

hi, @samuelhalim1 ! to fix it you should add to your android app module dependencies:

implementation("dev.icerock.moko:mvvm:$mokoMvvmVersion")
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version")
implementation("androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version")

we will fix dependencies configuration later (we will use api configuration to transitive dependencies for this case)

Alex009 commented 3 years ago

also this is not error for compiler. but IDE show error :(

Alex009 commented 3 years ago

will be released in 0.9.0