-
Notifications
You must be signed in to change notification settings - Fork 105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resource not found exception for drawables that show up in preview. #179
Comments
Can you also post the stack trace here and the composable function in question if you can share its implementation |
I unfortunately erased my changes on the branch I was testing the implementation because it seemed it wouldn't work for our use case. I can re-do it and post it tomorrow I think. It's probably because it's trying to access a drawable in a different module.. although our dependency setup allows for that, I'm not sure if ShowKase does |
There's nothing that should stop you from doing it because all Showkase is doing is simply invoking your preview function. It does not know anything about the implementation details of the function itself so it shouldn't matter as long as your preview function isn't private. Hence I'd love to see the stacktrace as that should have more clues. |
Hey @vinaygaba! Sorry I haven't responded for a while. We decided to hold off on using this until we could figure out the resource issue. I'm still running into the same issue on beta 08 (version that supports multi-module).
The implementation of the composable doesn't really matter I don't think. It crashes when it tries to read from the line that tries to access that drawable. The drawable is a vector image btw. Edit: I think it was something in how we're using our vector images with our attributes. Changed some things around and it seems to work now! :D |
It crashes ShowKase when it tries to get a drawable it can't find from a separate module I assume. Although Android studio preview renders it fine.
The text was updated successfully, but these errors were encountered: