Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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