I'm trying to update project here (that's using de...
# compose
j
I'm trying to update project here (that's using dev13 of Compose) to 1.4-M2 but getting
Copy code
Class 'kotlin.Unit' is compiled by a pre-release version of Kotlin and cannot be loaded by this version of the compiler
I'm using AS 4.2 Canary 1.....and if I just use new project option to create "Empty Compose Activity" I see same issue (it also creates project with dev13 of Compose and Kotlin 1.4-M2). If I create say basic fragment/viewmodel project then it builds/runs fine. Anyone else seeing this?
if I run
./gradlew :app:dependencies
(for new project created by AS) then I see that Compose libraries have dependency on stdlib 1.3.70 which is "resolved" to 1.4-M2
Copy code
|    +--- androidx.ui:ui-text:0.1.0-dev13
|    |    +--- androidx.ui:ui-core:0.1.0-dev13 (*)
|    |    +--- androidx.ui:ui-text-core:0.1.0-dev13 (*)
|    |    +--- androidx.ui:ui-util:0.1.0-dev13 (*)
|    |    +--- org.jetbrains.kotlin:kotlin-stdlib:1.3.70 -> 1.4-M2 (*)
|    |    \--- androidx.compose:compose-runtime:0.1.0-dev13 (*)
|    +--- androidx.ui:ui-util:0.1.0-dev13 (*)
z
I don't think Compose is compatible with kotlin 1.4 yet (I expect there will be an announcement in release notes when that changes)
2
j
thanks Zach, guess will put that combination at least on hold then until it supports it