# Using Kotlin 1.6 and Java 17 in Compose Multiplatform

**URL:** <https://discuss.kotlinlang.org/t/using-kotlin-1-6-and-java-17-in-compose-multiplatform/23722>\
**Category:** Multiplatform\
**Created:** [December 19, 2021, 6:16pm UTC](https://discuss.kotlinlang.org/t/using-kotlin-1-6-and-java-17-in-compose-multiplatform/23722 "2021-12-19T18:16:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![EatBrains](https://avatars.discourse-cdn.com/v4/letter/e/a698b9/32.png) [@EatBrains](https://discuss.kotlinlang.org/u/EatBrains)\
**Post date:** [December 19, 2021, 6:16pm UTC](https://discuss.kotlinlang.org/t/using-kotlin-1-6-and-java-17-in-compose-multiplatform/23722/1 "2021-12-19T18:16:13Z")

</div>

Kotlin Multiplatform seems to only support Kotlin 1.5.31 and Java 16.

> [@](#):
>
> e: This version (1.1.0-beta01) of the Compose Compiler requires Kotlin version 1.5.31 but you appear to be using Kotlin version 1.6.10 which is not known to be compatible. Please fix your configuration (or `suppressKotlinVersionCompatibilityCheck` but don’t say I didn’t warn you!).

> [@](#):
>
> Unknown JVM target version: 17  
> Supported versions: 1.6, 1.8, 9, 10, 11, 12, 13, 14, 15, 16

This is a freshly generated project in a freshly installed instance of IntelliJ IDEA Ultimate.

I’d like to use Kotlin 1.6.10 or 1.5.3 **2** and Java LTS 17 with Kotlin Multiplatform, is that currently unsupported?

Also, I wasn’t able to figure out where to add `suppressKotlinVersionCompatibilityCheck`. There are questions about this on StackOverflow, but all the instructions are for Gradle Groovy.

---

<div class="post-metadata">

**Author:** ![EatBrains](https://avatars.discourse-cdn.com/v4/letter/e/a698b9/32.png) [@EatBrains](https://discuss.kotlinlang.org/u/EatBrains)\
**Post date:** [December 19, 2021, 7:06pm UTC](https://discuss.kotlinlang.org/t/using-kotlin-1-6-and-java-17-in-compose-multiplatform/23722/2 "2021-12-19T19:06:06Z")

</div>

So I found out Kotlin 1.6.10 is supported in 1.0.1-rc2+ in

> <https://github.com/JetBrains/compose-jb/blob/master/FEATURES.md>

It was unclear that I was supposed to read this document to use Kotlin 1.6.10 and Java 17. Idealy the plugin should be able to set up these for me or readme.md should include this information.

Just change `plugins` in `build.gradle.kts`:

```kotlin
plugins {
    kotlin("jvm") version "1.6.10"
    id("org.jetbrains.compose") version "1.0.1-rc2"
}

```

Also change `jvmTarget` to `"17"`.

Anyways, I still haven’t figured out where to add `suppress...` in case I want to use a Kotlin release that is unsupported in Compose Multiplatform in the future.

---

<div class="post-metadata">

**Author:** ![EatBrains](https://avatars.discourse-cdn.com/v4/letter/e/a698b9/32.png) [@EatBrains](https://discuss.kotlinlang.org/u/EatBrains)\
**Post date:** [December 19, 2021, 7:35pm UTC](https://discuss.kotlinlang.org/t/using-kotlin-1-6-and-java-17-in-compose-multiplatform/23722/3 "2021-12-19T19:35:01Z")

</div>

There doesn’t seem to be documentation for Compose Multiplatform. I expected something like [Kotlin Docs | Kotlin](https://kotlinlang.org/docs/home.html) .

The best I could find is some readmes scattered around in the Git repo, and they do not do much.

The tutorials only cover getting started, and that doesn’t describe what each line of code is doing. Something like

[https://doc.rust-lang.org/book/ch01-02-hello-world.html](https://doc.rust-lang.org/book/ch01-02-hello-world.html)

would work better.
