Christian Lutnik
09/15/2022, 12:31 PMjvm
Compose Project, I immediately get an exception
'void org.jetbrains.skia.paragraph.ParagraphStyleKt._nSetTextIndent(long, float, float)'
java.lang.UnsatisfiedLinkError: 'void org.jetbrains.skia.paragraph.ParagraphStyleKt._nSetTextIndent(long, float, float)'
at org.jetbrains.skia.paragraph.ParagraphStyleKt._nSetTextIndent(Native Method)
at org.jetbrains.skia.paragraph.ParagraphStyleKt.access$_nSetTextIndent(ParagraphStyle.kt:1)
at org.jetbrains.skia.paragraph.ParagraphStyle.setTextIndent(ParagraphStyle.kt:182)
at androidx.compose.ui.text.platform.ParagraphBuilder.textStyleToParagraphStyle(SkiaParagraph.skiko.kt:776)
at androidx.compose.ui.text.platform.ParagraphBuilder.build(SkiaParagraph.skiko.kt:566)
at androidx.compose.ui.text.platform.ParagraphLayouter.<init>(ParagraphLayouter.skiko.kt:71)
as soon as the Composable under test contains a Text(String)
, so this fails:
class ComposeTest {
@get:Rule
val composeTestRule = createComposeRule()
@Test
fun firstTest() {
composeTestRule.setContent {
Text("Hello")
}
}
}
whereas this does not:
class ComposeTest {
@get:Rule
val composeTestRule = createComposeRule()
@Test
fun firstTest() {
composeTestRule.setContent {
Button({}){}
}
}
}
Does anyone have an idea what the problem could be?