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 trial

Android

Alistair Owens
Alistair Owens
6,101 Points

Android Java Course, Stage 3, "Pretty Little Things" - Problem with png loading to Eclipse

Have downloaded the png image and copied to the relevant CrystalBall/Res/Drawables directory. But when I go to drag it as an ImageView into the graphical layout of the activity_main xml file, I get an error. It tells me it failed to convert it into a drawable and the image does not show up as it does in the video. There is a yellow warning triangle which tells me that I am missing contentDescription attribute on image but I do not think this is the problem as that seems to be a warning rather than a fata error. I am using Eclipse Kepler on a Windows 8 PC. Anyone else come across this? Regards Alistair

1 Answer

Alistair Owens
Alistair Owens
6,101 Points

Answered! I changed the name of the file and for some reason this solved the issue. Not sure how or why but it works now and allows me to continue. Regards Alistair