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 Animations and Transitions The Transitions Framework Adding a Transition

Robin Damsgaard Larsen
Robin Damsgaard Larsen
13,929 Points

"@string/block_of_text" causing an error

I had to replace the "@string/block_of_text" (from the teacher's notes) with "@string/lyrics" for it to compile.

2 Answers

Robin Damsgaard Larsen
Robin Damsgaard Larsen
13,929 Points

It's undefined, so when copying the code from the teachers notes, it brings up an error. The actual text that is used in the video for the text view is already defined in the string resource called "lyrics" as I stated above. I was just letting the staff know there's an error here.

Francisco Abarza
Francisco Abarza
2,595 Points

Do you have "block_of_text" string defined in strings.xml? If not add:

<string name="block_of_text">YOUR STRING</string>