https://kotlinlang.org logo
#compose
Title
# compose
h

Horv

07/27/2020, 1:05 PM
I'm trying to add Jetpack Compose to my existing pet project. Got stuck getting the following error:
jetified-kotlin-stdlib-1.3.72.jar: Runtime JAR file has version 1.3 which is older than required for API version 1.4
Using latest stable Kotlin plugin for Android Studio. Do I need to switch to 1.4 preview?
a

Alejandro Rios

07/27/2020, 1:08 PM
If you're using compose dev15, yes, you need to update your kotlin version, check @romainguy sample https://github.com/romainguy/sample-materials-shop
h

Horv

07/27/2020, 1:59 PM
Got a bit further, now I'm getting internal compiler exception. 😕
Looking a bit further, it seems I'm having the same problem as Fudge here: https://kotlinlang.slack.com/archives/CJLTWPH7S/p1595857568427400
t

Taras Koshkin

07/27/2020, 10:20 PM
Did you add
freeCompilerArgs += ["-Xallow-jvm-ir-dependencies", "-Xskip-prerelease-check"]
to kotlinOptions - https://developer.android.com/jetpack/androidx/releases/compose
4 Views