Gen folder disappearing in Eclipse Android project
- by Adam Haile
I'm just getting started developing for Android and I'm running into a weird problem.
First off, I'm running Eclipse for Java devs v3.5.2 with the Android 2.1 SDK installed.
Basically, whenever I do just about anything the "gen" (R.java, etc.) folder will just disappear from the project. I'm seen some people online say that it was still on the drive, just gone from the project listing in Eclipse, but in my case it is literally and completely gone.
The only fix I've found is that if I refresh, then try to build, it gives an error and "gen" shows up in the project view (though it's not on the disk), then delete it from within the project, then Rebuild All and it will say that it cannot find it and is recreating it.
Problem is, I have to do this every single time I want to build.
There's got to be a fix for this.