Thread
#compose
    John O'Reilly

    John O'Reilly

    2 years ago
    I'm trying to update project here (that's using dev13 of Compose) to 1.4-M2 but getting
    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
    |    +--- 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 (*)
    Zach Klippenstein (he/him) [MOD]

    Zach Klippenstein (he/him) [MOD]

    2 years ago
    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)
    John O'Reilly

    John O'Reilly

    2 years ago
    thanks Zach, guess will put that combination at least on hold then until it supports it