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.

adsdev
15,583 PointsGetting an error on: @+id/
It gives me a resource not found error, something like that everytime i want to i leave the id like that. "Validates
2 Answers

James Simshaw
28,738 PointsHello,
By leaving an id as @+id/ you are essentially trying to give it no id which cannot be done. All you need to do is complete the id statement with @+id/someUniqueName.

adsdev
15,583 Pointsthanks james, i had to uncheck some other things to get it right. But main thing was like that.
Sanat Tripathi
8,109 PointsSanat Tripathi
8,109 PointsI have no clue what you are trying to ask (From next time also please share your code (or snippet) if you really want help).
Why would you not assign an id to a resource?
The correct way of assigning an id to a layout element is like this: