Should compose `@Preview` using uiToolingPreview w...
# compose
d
Should compose
@Preview
using uiToolingPreview works with Common resources API? I’m getting an error on my preview in all
@Compose
I have images for example
Copy code
Caused by: org.jetbrains.compose.resources.MissingResourceException: Missing resource with path: drawable/home_icon_card.xml
But it works like a charm while running the app
p
I think it's a bug. I'm having a lot of similar issues on beta build of AS lately, every time I rename or add a new resource. It starts working for me, after I reopen AS.
👍 1
w
Hi! This is a bug FL-25048. Currently the only workaround is to add a desktop target.
🙏 1
👍 1
h
@Wout Werkman I tried adding desktop target but getting same error. Is there any example on how to do it exactly?
managed to make it work on fleet
🔥 1