compose previews don't work for me in multiplatfor...
# multiplatform
p
compose previews don't work for me in multiplatform, i have defined the @Preview the top right side of the code window doesn't allow me to check the preview
Copy code
val androidMain by getting {
    dependencies {
        implementation(compose.preview)
        implementation(libs.androidx.activity.compose)
        implementation(libs.bundles.androidApp)
        implementation(libs.billing.ktx)
    }
}
val commonMain by getting {
    dependencies {
        implementation(libs.bundles.database)
        implementation(libs.bundles.kmp.firebase)
        implementation(libs.bundles.kotlin)
        implementation(libs.bundles.ktor)
        implementation(libs.bundles.utils)
        implementation(compose.runtime)
        implementation(compose.foundation)
        implementation(compose.material3)
        implementation(compose.ui)
        implementation(compose.components.resources)
        implementation(compose.components.uiToolingPreview)
    }
}
m
Compose Multiplatform Previews doesn't work in Android Studio in common module they only work in Fleet
f
you can have some preview with android studio, if you run your preview from the android target
p
@Muaz KADAN just done setting up my fleet, now how do i get the preview, is there any plugin or option i need to install or activate
m
When you annotate a function with @Preview you must see a compose icon on the left of it
The preview will start when you click on that icon
p
@Muaz KADAN