Sam
08/26/2025, 1:33 PMcommonMain
?
I keep getting this:
No matching variant of org.jetbrains.compose.ui:ui-tooling-preview:1.9.0-beta03 was found. The consumer was configured to find a library for use during 'kotlin-metadata', preferably optimized for non-jvm, as well as attribute 'org.jetbrains.kotlin.native.target' with value 'ios_x64',
Andrei Salavei
08/26/2025, 2:57 PMIvan Matkov
08/27/2025, 10:32 AMSam
08/27/2025, 10:37 AMIvan Matkov
08/27/2025, 10:42 AMNo matching variant of org.jetbrains.compose.uiui tooling preview1.9.0-beta03 was found.This means that you're trying to use desktop-only preview. The problem is that we currently have three preview annotations: • Common Preview:
org.jetbrains.compose.ui.tooling.preview.Preview
• Android Preview: androidx.compose.ui.tooling.preview.Preview
• Desktop Preview: androidx.compose.desktop.ui.tooling.preview.Preview
Historical reasons, you know 🙈 We're working to reduce it to unified one. First link that @Andrei Salavei shared is about moving android one to common.