Are multipreview annotations broken in Canary 8 of Android Studio? I keep getting
Only composable methods can be annotated with Preview
. Usage in π§΅
Zoltan Demant
07/15/2022, 5:13 AM
Copy code
@Preview(group = "Wear")
annotation class WearPreview
c
Chris Sinco [G]
07/15/2022, 5:17 AM
cc @amaury
z
Zoltan Demant
07/15/2022, 5:38 AM
Sorry, seems to be an issue with Showkase!
Right now, the Showkase process throws an exception of "Only composable methods can be annotated with Preview" upon seeing a custom annotation annotated with
@Preview
.
s
Stylianos Gakis
07/15/2022, 9:38 AM
Maybe worth either pinging the library author or making an issue on GitHub so that heβs aware? Sounds like a pretty important thing to fix if itβs broken for the entire Canary 8 AS version.
z
Zoltan Demant
07/15/2022, 10:34 AM
@Stylianos Gakis it's been reported already, I was just too lazy to include the link to it here π
π 2
v
Vinay Gaba
07/15/2022, 8:03 PM
I have this on my radar! Just need to spend some time in removing this check. Multi preview support is going to be a substantial project but I want to start by at least removing this validation check and unblocking y'all. I'll have that done this weekend or something!