Christian Lutnik
09/15/2022, 2:47 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?Kirill Grouchnikov
09/15/2022, 5:26 PMjim
09/15/2022, 6:34 PMjim
09/15/2022, 6:35 PMjim
09/15/2022, 6:36 PMjim
09/15/2022, 6:37 PMKirill Grouchnikov
09/15/2022, 8:10 PMsetTextIndent
binding back in March. So it’s not a recent changeChristian Lutnik
09/19/2022, 6:35 AM