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

HELP! 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

R.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.

That's a built file. Have you tried a rebuild? Or try Invalidate Caches and Restart.

I am on a Windows and no i have not backed up

Jon Kussmann can you help?

Jon Kussmann can you help?

Jon Kussmann can you help?

Did you backup your file anywhere?

Also, are you using a mac with time machine set up?

Thank you Steve Hunter and Jon Kussmann

Thank you Steve Hunter and Jon Kussmann

Fixed?