icerockdev / moko-mvvm

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

Problems with installation #45

Open Alex009 opened 4 years ago

Alex009 commented 4 years ago

User encountered the following issues in android module:

Cannot access class 'dev.icerock.moko.mvvm.dispatcher.EventsDispatcher'. Check your module classpath for missing or conflicting dependencies

and

Type parameter bound for T in operator fun <T : ViewModel!> get(p0: Class<T!>): T
 is not satisfied: inferred type HomeViewModel! is not a subtype of ViewModel!

first issue is strange and should be investigated.

second - fixes by

dependencies {
    androidMainImplementation("androidx.lifecycle:lifecycle-extensions:2.0.0")
}

just in install section from readme.

both issue was fixed by user when in android module was added: implementation("dev.icerock.moko:mvvm:0.6.0")