https://kotlinlang.org logo
#compose
Title
# compose
n

Nick Kleban

11/22/2023, 12:26 PM
I’m struggling to make “Run preview” work with multipreview annotations if annotation was imported from another module.
Copy code
Error: Dark theme preview is not supported in the curent project. Cannot obtain the package.
Have anyone encountered this issue?
Copy code
@Preview(
    name = "Light theme preview",
    uiMode = UI_MODE_NIGHT_NO,
)
@Preview(
    name = "Dark theme preview",
    uiMode = UI_MODE_NIGHT_YES,
)
annotation class PreviewScreen
3 Views