:tada: The new KMP plugin is now available for Int...
# multiplatform
z
🎉 The new KMP plugin is now available for IntelliJ IDEA and Android Studio, making KMP development smoother and smarter. Key highlights include: Integrated New Project wizard 🔍 Preflight checks 🔧 Run configurations for all platforms 🧭 Cross-language support 🎨 Compose Multiplatform support 🔥 Compose Hot Reload Discover more in our latest blog post: https://kotl.in/f4tw6d Try the KMP plugin for yourself: https://plugins.jetbrains.com/plugin/14936-kotlin-multiplatform Please share your thoughts and questions here or in the dedicated #C3PQML5NU channel. Slack Conversation
🎉 5
❤️ 11
i
Just tried it, but the composeResource couldn't preview in commonMain properly, such as
stringResource
. Any thoughts?
Copy code
java.lang.NullPointerException
  at _layoutlib_._internal_.kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith   ...
(ContinuationImpl.kt:33)
  at _layoutlib_._internal_.kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:101)
  at _layoutlib_._internal_.kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:263)
  at _layoutlib_._internal_.kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:95)
  at _layoutlib_._internal_.kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:69)
  at _layoutlib_._internal_.kotlinx.coroutines.BuildersKt.runBlocking  at _layoutlib_._internal_.kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:47)
👀 1
z
Could you provide the code you're using for that? In general, string resources can be used in previews. You can take a look at the previews in the
ui-components
module of kotlinconf-app as an example, like in FeedbackForm.kt.
l
for me, the KMP plugin replaced the standard gradle run android app task with a Kotlin Mobile Android app task which I'm not able to run, it says that
Target device is not selected
but the device picker is disabled. Also, it put the desktop run task under Android App too, so it does not work either.
s
@Lukáš Kúšik Could you share the Gradle file? It might help to reproduce and fix the issue.