Closed Diy2210 closed 2 years ago
Lifecycle extensions should be Android dependency, not common.
See readme setup block
I move lifecycle extensions to android dependency, but error dont gone. Cannot access 'dev.icerock.moko.mvvm.viewmodel.ViewModel'
error: cannot generate view binders com.sun.tools.javac.code.Symbol$CompletionFailure: class file for dev.icerock.moko.mvvm.viewmodel.ViewModel not found
build.gradle:
Dependency Android:
Dependency Shared:
now problem with databinding logic. try change implementation
to api
dependency definition of moko-mvvm. or add moko-mvvm to app
module dependencies directly
Change your commonMain moko-mvvm dependency declaration from implementation
to api
I get some error: Cannot access 'dev.icerock.moko.mvvm.viewmodel.ViewModel' which is a supertype of 'net.compoza.deactivator.mpp.model.ListViewModel'. Check your module classpath for missing or conflicting dependencies.
ViewModel class:![Снимок экрана 2020-09-29 в 12 32 27](https://user-images.githubusercontent.com/9552501/94541159-ec982d00-024f-11eb-9a8e-f8e34a0b71ca.png)
Fragment code:![Снимок экрана 2020-09-29 в 12 32 07](https://user-images.githubusercontent.com/9552501/94541202-fae64900-024f-11eb-91bb-730cce15d478.png)
shared build.gradle:
![Снимок экрана 2020-09-29 в 12 36 20](https://user-images.githubusercontent.com/9552501/94541583-6c25fc00-0250-11eb-85fc-404c7c53c109.png)
I use: Android Studio: 4.0.1 Kotlin: 1.4.10 gradle: 6.6 build.gradle: 4.0.1 And block Android() in shared build.gradle.