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.


Rondale Williams
Rondale Williams
1,892 Points

Getting @string resource error and ImageView error

Why does Eclipse keep telling me I need to change the text "Enlighten Me" to string resource?Secondly, the ImageView section of my activity_main xml file keeps telling me that I am "Missing contentDscription attribute on image". Why is that?

1 Answer

Maybe this is not the primary reason we should do that, but this is how I persuaded me when I had to: You don't know if in the future you use the same string and you want to be sure it will be exactly the same as first use. For that case, you can keep the data somewhere else and use whenever you want.

About Image, if you know some HTML, it's like Alt attribute of image (img="" alt=""), Ben explains. Believe me, at least as this Android course goes, you wil never have to care about that caution.