https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
s

Slackbot

03/29/2024, 7:00 PM
This message was deleted.
a

Ana Sekuloski

04/01/2024, 12:14 PM
androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.2
this cannot be used on multiplatform since it’s an Android library. You should put it in
androidMain.dependencies {}
instead of in
commonMain
.
If you want to use
lifecycle-viewmodel
in common code, you should use v2.8.0-alpha03, see https://developer.android.com/jetpack/androidx/releases/lifecycle#version_28_2
4 Views