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) Creating the Screen Layout Editing a Layout File

Pawin P.
Pawin P.
435 Points

Help !! , I have an error on the android:id="@+id/" it say " Missing Resource File "

Help !! , I have an error on the android:id="@+id/" it say " Missing Resource File "

Hi Pawin and Lidio,

I had the same issue.

To resolve we need to assign an ID to our the label that we've amended. You can do this within the Text editor or within the Design tab. Within the text editor you will need to add something similar to the following:

android:id="@+id/didyouknow"

By adding this you've applied the ID value of didyouknow to your label. If you switch back to your Design view and view the alphabetically ascending list of properties (where we changed the text) on the right hand side of the IDE we can see that this now has the id of didyouknow.

By hovering over the error when it was still present we can see that this is a fairly recent change to the way that Android Studio handles strings on a form and it looks to be changed due to the way ID integers are assigned.

I hope this helps you, Matthew

1 Answer

I just have this and i started roject from the beggining

Hi Lidio,

Please see my response to Pawin. I hope this helps you.

Thanks