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.


Getting 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

I 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:

<!-- []  =  Optional --> 
        android:layout_height=["dimension" | "fill_parent" | "wrap_content"]
        android:layout_width=["dimension" | "fill_parent" | "wrap_content"]
        [View-specific attributes] >

2 Answers


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.

thanks james, i had to uncheck some other things to get it right. But main thing was like that.