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 trialPawin P.
435 PointsHelp !! , 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 "
1 Answer
Lidio Hoxha
134 PointsI just have this and i started roject from the beggining
Matthew Moulds
4,788 PointsHi Lidio,
Please see my response to Pawin. I hope this helps you.
Thanks
Matthew Moulds
4,788 PointsMatthew Moulds
4,788 PointsHi 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