Hi guys i am not able to preview my composables in...
# multiplatform
b
Hi guys i am not able to preview my composables in Android studio i have added compose tooling and tooling preview for android also but the small tab is bnot there
m
Is this particular to a single project or any project you open in your Android Studio on your computer?
b
no only top my project
Screenshot 2024-01-10 at 9.06.41 PM.png
m
Alright, this is usually caused by a variety of issues. Is your project a KMP or Compose Multiplatform project? Previews aren't supported yet for that. If it isn't, then you can take this question to the #compose channel.
b
no its compose multiplatform
but i am using the preview in my android module
m
Interesting..., then in that case, the other things you could try are using a simpler preview composable, maybe with just a
Text
or performing an Invalidate and Restart on Android Studio. After these, then you can begin to question whether it is your set up.
b
did that
m
The last thing I can try to suggest to diagnose this is to create another file and confirm if the same thing still happens. I checked a basic compose multiplatform project on my computer just now and I see the previews works fine. If it still doesn't work, then it'll be a bit difficult to find out what's wrong without seeing your full setup. You can DM if that's the case.
273 Views