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

Installation does not work, "could not find method androidMainImplementation() for arguments..." #56

Closed Berki2021 closed 3 years ago

Berki2021 commented 3 years ago

Hello, I am trying to implement your library, but it does not work.

Here is the strack trace:

A problem occurred evaluating project ':app'.

Could not find method androidMainImplementation() for arguments [androidx.lifecycle:lifecycle-extensions:2.1.0] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

Alex009 commented 3 years ago

Hello! I think your module :app is not multiplatform module, so in :app you should connect dependency with implementation. androidMainImplementation should be used in Multiplatform module where moko-mvm connected