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 Build a Simple Android App (2014) Basic Android Programming Adding the onClick() Method

On my codes the symbol R is red. Is something wrong?

At FunFacts.activity.java some of my codes have R but it is red.

2 Answers

Hello,

Could you try to clean and rebuild your project to see if that clears things up? R is a special class that actually has to be created and updated before Android Studio knows that something exists there.

Every time i rebuild an erros occurs.I downloaded again, and this time the fol "build" didn't even exist.I downloaded another version and i am going to check it right now hope it works. And thanks for replying!

Stlil no build folder :(

You're downloading it from the project files section of the video attached to this question, right? Are you using Eclipse or Android Studio? When you build it, exactly what errors are you getting? When I download it and unzip the file, I do get a build folder, with the only thing in it is an intermediates folder and inside that a model_data.bin file.