Thread
#compose
    Arkadii Ivanov

    Arkadii Ivanov

    1 year ago
    I'm trying to update to Compose
    alpha12
    , the
    setContent
    is now deprecated, so I added
    androidx.activity:activity-compose:1.3.0-alpha01
    to the dependencies and updated the import. The build fails with the following error. Is there a fix for this?
    Task :sample:counter:app-android:compileDebugKotlin FAILED
    w: Flag is not supported by this version of the compiler: -Xallow-jvm-ir-dependencies
    w: ATTENTION!
    This build uses unsafe internal compiler arguments:
    
    -XXLanguage:+NonParenthesizedAnnotationsOnFunctionalTypes
    
    This mode is not recommended for production use,
    as no stability/compatibility guarantees are given on
    compiler or generated code. Use it at your own risk!
    
    e: Classes compiled by an unstable version of the Kotlin compiler were found in dependencies. Remove them from the classpath or use '-Xallow-unstable-dependencies' to suppress errors
    e: /home/aivanov/dev/workspace/Decompose/sample/counter/app-android/src/main/java/com/arkivanov/counter/app/MainActivity.kt: (39, 9): Class 'androidx.activity.compose.ComponentActivityKt' is compiled by an unstable version of the Kotlin compiler and cannot be loaded by this compiler
    BenjO

    BenjO

    1 year ago
    @Arkadii Ivanov did you manage to get rid of the warning ? https://kotlinlang.slack.com/archives/CJLTWPH7S/p1613040816185600
    Arkadii Ivanov

    Arkadii Ivanov

    1 year ago
    @BenjO I did even try to get rid of it 😐
    BenjO

    BenjO

    1 year ago
    Ok thanks for the answer 🙏