-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiplatform template in IDEA / Android Studio. Compose classes are underlined in desktop module #21
Labels
bug
Something isn't working
Comments
Also reproduced in templates/desktop if we define kotlin version in settings.gradle.kts:
instead of build.gradle.kts |
Reproduced in: Not reproduced in: |
For multiplatform project we can't define kotlin version in build.gradle.kts (it seems that Android Gradle Plugin doesn't support it) |
igordmn
added a commit
that referenced
this issue
Oct 26, 2020
Fixes: - #21 We need to move buildscript from settings.gradle.kts to build.gradle.kts See also https://youtrack.jetbrains.com/issue/KT-36331 - #22 kotlin("jvm") plugin doesn't work well with MPP modules. To fix this issues we need to use kotlin("multiplatform") even if we targeting single platform. See also https://youtrack.jetbrains.com/issue/KT-42823
igordmn
added a commit
that referenced
this issue
Oct 26, 2020
Fixes: - #21 We need to move buildscript from settings.gradle.kts to build.gradle.kts See also https://youtrack.jetbrains.com/issue/KT-36331 - #22 kotlin("jvm") plugin doesn't work well with MPP modules. To fix this issue we need to use kotlin("multiplatform") even if we targeting single platform. See also https://youtrack.jetbrains.com/issue/KT-42823
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If we open multiplatform template in IDEA or Android studio (templates/multiplatform), all compose classes will be underlined:
"Class 'androidx.compose.runtime.MutableState' is compiled by a new Kotlin compiler backend and cannot be loaded by the old compiler"
P.S. templates/desktop template is working fine
The text was updated successfully, but these errors were encountered: