https://kotlinlang.org logo
#compose
Title
# compose
d

danielpassos

03/11/2024, 1:02 PM
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

Peter

03/11/2024, 5:10 PM
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

Wout Werkman

03/11/2024, 5:22 PM
Hi! This is a bug FL-25048. Currently the only workaround is to add a desktop target.
🙏 1
👍 1
h

Hakob Astvacatryan

04/18/2024, 11:03 AM
@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
3 Views