Does anyone got to work `@Preview` on `alpha10`? M...
# compose
k
Does anyone got to work
@Preview
on
alpha10
? Marking composable with
Preview
gets me
androidx.ui.tooling.preview.PreviewActivity is not an Activity subclass or alias
. Using AS 4.2 Beta 4.
j
You need to stay with the canary versions for now.
l
import androidx.compose.ui.tooling.preview.Preview
you must add compose between androidx and ui
I had the same issue on this afternoon ^^. But using the canary version of AS
k
Thanks, the problem wasn’t the import, but rather not using Canary. Now preview works 🙂
👍 1