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

krzysztof

02/01/2021, 8:01 PM
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

JulianK

02/01/2021, 8:05 PM
You need to stay with the canary versions for now.
l

loloof64

02/01/2021, 8:13 PM
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

krzysztof

02/01/2021, 8:32 PM
Thanks, the problem wasn’t the import, but rather not using Canary. Now preview works 🙂
👍 1