Berkeli Alashov
08/06/2023, 1:20 AMjava.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
at java.desktop/java.awt.image.DirectColorModel.createCompatibleWritableRaster(DirectColorModel.java:1016)
at java.desktop/java.awt.image.BufferedImage.<init>(BufferedImage.java:333)
at com.android.layoutlib.bridge.impl.RenderSessionImpl.renderAndBuildResult(RenderSessionImpl.java:519)
at com.android.layoutlib.bridge.impl.RenderSessionImpl.render(RenderSessionImpl.java:451)
at app.cash.paparazzi.Paparazzi$takeSnapshots$1$2.invoke(Paparazzi.kt:314)
at app.cash.paparazzi.Paparazzi$takeSnapshots$1$2.invoke(Paparazzi.kt:313)
at app.cash.paparazzi.Paparazzi.withTime(Paparazzi.kt:361)
at app.cash.paparazzi.Paparazzi.takeSnapshots(Paparazzi.kt:313)
at app.cash.paparazzi.Paparazzi.snapshot(Paparazzi.kt:207)
at app.cash.paparazzi.Paparazzi.snapshot$default(Paparazzi.kt:206)
at app.cash.paparazzi.Paparazzi.snapshot(Paparazzi.kt:202)
android.content.res.Resources$NotFoundException: Font resource ID #0x7f09000f could not be retrieved.
java.lang.ClassNotFoundException: androidx.compose.ui.text.input.PlatformTextInputPluginRegistryImpl
at androidx.compose.ui.platform.AndroidComposeView.<init>(AndroidComposeView.android.kt:378)
I tried reproduce this by just adding implemenation androidx.constraintlayout:constraintlayout-compose:1.1.0-alpha11
to paparazzi/sample/build.gradle but errors are not the same (only ClassNotFoundException:
from above vs I see other errors on our project) but then couldn't even reproduce it in somewhat clean/sample project.