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 trialJordan Ernst
5,121 Pointscannot resolve "R."
is it possible that i deleted the "styles.xml" file? is this were that R library was stored? i have 0 clue what i am doing wrong or why there is an error to this code.
1 Answer
Jacob Bergdahl
29,119 PointsIt's hard to know exactly what went wrong for you, but you should definitely not delete the "styles.xml" file. Try going up to the "BUILD" option at the top of the screen, and select "Rebuild" and "Clean", and see if that helps. It could just be the IDE making a mistake. Otherwise, are you sure that you are writing R in the right context?
Jordan Ernst
5,121 PointsJordan Ernst
5,121 Pointsthanks, for the response Jacob, not sure what even happened i was getting that error for hours. so i closed the program and restarted the computer and then i still had the error but i attempted to run it anyways and it cleared away. also i did have a minor syntax error before this process. i didn't have "nameEditText" spelled correctly. it is running and i am finished the next lesson
Jordan Ernst
5,121 PointsJordan Ernst
5,121 Pointsalso i did not delete the styles.xml file i just closed it and couldn't remember where i had initially found it