Home > OS >  Can Jetpack Compose be used with Kotlin 1.8.0
Can Jetpack Compose be used with Kotlin 1.8.0

Time:01-18

The release notes for Kotlin 1.8.0 mention Jetpack Compose https://kotlinlang.org/docs/whatsnew18.html

But the latest version that can be used by Jetpack Compose is 1.7.21 https://developer.android.com/jetpack/androidx/releases/compose-kotlin

What am I missing here?

Update: Literally hours after posting this, Jetpack released 1.4.0 which is compatible with Kotlin 1.8.0.

CodePudding user response:

The Kotlin 1.8.0 release notes mention that Jetpack Compose is now supported by the Kotlin language, but it does not necessarily mean that the current version of Jetpack Compose 1.4.0-alpha02 is compatible with Kotlin 1.8.0.

The version of Jetpack Compose that is listed on the Android developer website (1.7.21) is the latest version that has been tested and is known to work with the specified version of the Kotlin language.

To use the latest version of Kotlin (1.8.0) with Jetpack Compose, you will need to wait for a new version of Jetpack Compose that is compatible with Kotlin 1.8.0 to be released.

Update

Jetpack compose compiler version 1.4.0 is compatible with Kotlin 1.8.0 - release notes : https://developer.android.com/jetpack/androidx/releases/compose-compiler#1.4.0

  • Related