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
Farouk Charkas
1,957 PointsHELP! I don't know what to do! This is super urgent! Any feedback is greatly greatly greatly appreciated!
I accidently deleted my "R.java" file! I dont wnt to reestart the project because I spent three loooooong days on it! Please help! I want to get it back!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Thank you!!!!!!!11
8 Answers
Jon Kussmann
Courses Plus Student 7,254 PointsR.java should be rebuilt whenever you rebuild your project. Go to Build -> Rebuild Project.
Also, Android Studio has local VCS (version control system). If Rebuild Project did not work, click on the "app" folder of your project -> go to VCS -> Local History -> Show History -> From there you can pick a previous version and revert.
Steve Hunter
57,712 PointsThat's a built file. Have you tried a rebuild? Or try Invalidate Caches and Restart.
Farouk Charkas
1,957 PointsI am on a Windows and no i have not backed up
Farouk Charkas
1,957 PointsJon Kussmann can you help?
Farouk Charkas
1,957 PointsJon Kussmann can you help?
Farouk Charkas
1,957 PointsJon Kussmann can you help?
hum4n01d
25,493 PointsDid you backup your file anywhere?
hum4n01d
25,493 PointsAlso, are you using a mac with time machine set up?
Farouk Charkas
1,957 PointsThank you Steve Hunter and Jon Kussmann
Farouk Charkas
1,957 PointsThank you Steve Hunter and Jon Kussmann
Steve Hunter
57,712 PointsFixed?