Apologies if this is not the right place to ask, b...
# compose-android
p
Apologies if this is not the right place to ask, but I've encountered an issue with preview screenshot testing. I'm trying to call a compostable defined in main with a content closure defined. However, the screenshotTest source is defining the wrong type (Function1) and the compostable from main requires a CompostableFunction1, which comes with K2. This is the IDE error:
Copy code
Argument type mismatch: actual type is '@Composable() kotlin.Function1<androidx.comoose.fundation.layout.PaddingValues, kotlin.Unit>', but '@Composable() androidx.compose.runtime.internal.ComposableFunction1<androidx.compose.foundation.layiut.PaddingValues, kotlin.Unit>' was expected.
The tests run correctly, but I'm wondering how to remove the error. Anyone seen this?
s
It sounds like IDE does not apply Compose plugin for the screenshot test sourceset
Feel free to file a bug for Android Studio
👍 1