I am trying to add a CMP module to an existing android project, unable to get preview run.
I have a following project structure:
:app (android, already added compose-ui-tooling and compose-ui-tooling-preview, not CMP but androidx)
• main (I am calling my previews here, using androidx...Preview)
:lib (cmp)
• androidMain
• commonMain
◦ com.domain.package (composable definition, uses a composeResource (myvector.xml))
• jvmMain
• iosMain
Have created a sample project that mirrors my setup, check the preview at :app/src/main/java/com.thedroiddiv.resourcepreview.app/MainActivity.kt
https://github.com/thedroiddiv/ResourcePreview