I'm trying to add Jetpack Compose to my existing p...
# compose
h
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
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
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
Did you add
freeCompilerArgs += ["-Xallow-jvm-ir-dependencies", "-Xskip-prerelease-check"]
to kotlinOptions - https://developer.android.com/jetpack/androidx/releases/compose