After updating to Narwhal, my Kotlin Multiplatform...
# multiplatform
b
After updating to Narwhal, my Kotlin Multiplatform project successfully Gradle syncs, but opening any Kotlin file in
commonMain
shows a "Project JDK is not defined" message with an option to "Setup SDK". No amount of setting the SDK from the list seems to solve it. Sometimes the banner transitions to "Kotlin not configured" If I revert back to Meerkat, no issues.
g
we are experiencing exactly the same issue, have you found any workarounds?
b
@Grzegorz Gajewski My project is a Kotlin Multiplatform app. With Narwhal, JetBrains introduced a new plugin for Multiplatform development. There is some edge case that it seems to choke on. Others don't seem to experience it, but for my project, use of this plugin results in this error. It is being tracked here: https://youtrack.jetbrains.com/issue/KMT-1299 For now, I just disabled the new Kotlin Multiplatform plugin and can continue using Narwhal and the development experience is similar to Meerkat. JetBrains has not yet updated status. 22 days ago, they simply said "Thank you! We'll investigate." If you have the Multiplatform plugin enabled, try disabling. If that works for you, add your confirmed findings to that issue linked above for additional evidence.
👀 1