uli
05/26/2021, 8:49 PM> Task :shared:compileKotlinJvm
e: This version (1.0.0-beta08) of the Compose Compiler requires Kotlin version 1.5.0 but you appear to be using Kotlin version 1.4.32 which is not known to be compatible. Please fix your configuration (or `suppressKotlinVersionCompatibilityCheck` but don't say I didn't warn you!).
Any hints where “1.0.0-beta08" could be coming from? And how to set the Compose Compiler version in non-android projects?jim
05/26/2021, 9:15 PMuli
05/26/2021, 9:16 PMjim
05/26/2021, 9:18 PMuli
05/26/2021, 9:19 PMuli
05/26/2021, 9:22 PMcarlonzo
05/26/2021, 10:55 PMjim
05/26/2021, 11:06 PMjim
05/26/2021, 11:07 PMMantas Varnagiris
05/28/2021, 12:46 PMjava.lang.NoSuchFieldError: No field Square of type Landroidx/compose/ui/graphics/StrokeCap; in class Landroidx/compose/ui/graphics/StrokeCap; or its superclasses (declaration of 'androidx.compose.ui.graphics.StrokeCap' appears in /data/data/com.swissborg.android/code_cache/.overlay/base.apk/classes.dex)
at com.google.accompanist.swiperefresh.CircularProgressPainter.onDraw(CircularProgressPainter.kt:90)
at androidx.compose.ui.graphics.painter.Painter.draw-x_KDEd0(Painter.kt:212)
at androidx.compose.ui.draw.PainterModifier.draw(PainterModifier.kt:289)
...
jim
05/28/2021, 3:06 PMSo in MPP can I even use Android specific compose libraries in Android module?Yes, exactly right. Or more specifically, you can use Android specific code in the Android source sets of any given MPP module.
I successfully used accompanist-coil. But when I try to use accompanise-swiperefresh I get this errorThat inline class isn't even android specific (it lives in common code). I'm not sure what's going wrong there. You could try doing a clean build to see if that helps, but that might be a bit optimistic. Sounds like maybe a bug or version mismatch between Accompanist and Compose. We might need to call in @cb or file a bug. If you're able to create a minimal repro, we can investigate further.
Mantas Varnagiris
05/29/2021, 7:45 AMcb
06/08/2021, 6:39 AM