John O'Reilly
06/13/2020, 12:02 PMClass '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?John O'Reilly
06/13/2020, 12:12 PM./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]
06/13/2020, 2:08 PMJohn O'Reilly
06/13/2020, 2:54 PM