Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialKevin Lavi
3,311 PointsImageView not working in xml file (in preview, works fine in app) (android studio)
Any time I add an image with imageview it works find within the app but I can't do anything with it in the preview/design mode in Android Studio. For example instead of showing the purple ribbit design it just shows the blank plain white background. It makes it frustrating working on this project.
I actually get error's with this also, which is odd because it works perfectly fine when it runs on the emulator:
Rendering Problems Couldn't resolve resource @drawable/background_fill (3 similar errors not shown) Failed to convert @drawable/background_fill into a drawable (2 similar errors not shown)
1 Answer
Jaroslav Vankat
12,054 PointsProbably too late but I had a similar problem, just lower the API in the preview (I chose API 19) and it should work fine (more info here http://thodorisbais.blogspot.de/2014/07/how-to-solve-exception-raised-during.html). But it's possible you have a different problem.