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

loloof64

03/09/2021, 9:32 AM
Hi ! I am trying to launch a preview on my phone, but I am getting an error
androidx.compose.ui.tooling.preview.PreviewActivity is not an Activity subclass or alias
though I managed to launch it yesterday. This is my preview :
Copy code
@Preview
@Composable
fun ChessBoardPreview() {
    ChessBoard(size = 60.dp)
}
where ChessBoard is a Composable component that I'm writing
Copy code
Android Studio Arctic Fox | 2020.3.1 Canary 8
Build #AI-203.7148.57.2031.7165533, built on February 23, 2021
Runtime version: 11.0.8+0-b944-P17168821 amd64
VM: OpenJDK 64-Bit Server VM by N/A
Linux 5.10.19-200.fc33.x86_64
GC: G1 Young Generation, G1 Old Generation
Memory: 1280M
Cores: 4
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: org.intellij.plugins.markdown
Current Desktop: GNOME
In fact I just forgot to check that there was an update for AS.
3 Views