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 Generating a Random Number

Joshua Schoen
Joshua Schoen
900 Points

When I try running the Emulator I get a really annoying error in my main page.

How would you fix this, the problem is in my main funfacts page in FunFacts.Java lol. It doesn't apparently recognize this. And I have no idea how to fix it. I've tried all the generated options, but none of them work. This is the error : Error:(16, 21) Resource id cannot be an empty string (at 'id' with value '@+id/'). and I can't solve it ;/.

1 Answer

Looks like there could be a problem with your XML file. Check your activity fun facts XML file and see if any of the id have not been closed.