Previews don’t work in commonMain in a multi-module setup. This seems to be a known issue (<1>, <2>)...
k
Previews don’t work in commonMain in a multi-module setup. This seems to be a known issue (1, 2), but is there a workaround for now?
n
I managed to make the preview work by adding Android preview tools to the Android sourceset. But it still was not stable.
v
For me downgrading from com.android.kotlin.multiplatform.library to com.android.library is workaround that works.
p
Latest canary of Android studio fixed this for me. Nevermind, just saw this post was in response to one above.
🫢 1
k
Seems like the latest canary build will indeed fix it - https://issuetracker.google.com/issues/422373442#comment16
❤️ 1
I finally managed to do it, I added a comment here about my setup and gradle file that works. The comment from @neworldlt also helped.
❤️ 2