Gen folder disappearing in Eclipse Android project

Posted by Adam Haile on Stack Overflow See other posts from Stack Overflow or by Adam Haile
Published on 2010-06-09T02:18:23Z Indexed on 2010/06/09 2:22 UTC
Read the original article Hit count: 216

Filed under:
|
|
|

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.

© Stack Overflow or respective owner

Related posts about java

Related posts about android