Arkadii Ivanov
02/10/2021, 9:58 PMalpha12
, 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
02/11/2021, 10:57 AMArkadii Ivanov
02/11/2021, 11:01 AMBenjO
02/11/2021, 11:03 AM