tags:

views:

537

answers:

4

I keep getting this when trying to start a new project

ERROR: Unable to open class file C:\Users\Levi\Desktop\Android\workspace\Droid1\gen\com\androidbook\droid1\R.java: No such file or directory

I tried changing preferences to alter build path to project, but it still wouldnt work,,,

Is subfolder on desktop a bad place to install Eclipse?

A: 

Im also getting that error, running a Project->Clean in Eclipse helps for me.

madsleejensen
Thank you kind sir!
LuxuryMode
A: 

Project->Clean should certainly fix this (unless your resources won't compile for some seperate reason).

I remember that the first time I ran Eclipse (in mid 2009, can't remember if it was Galileo or Ganymede or whatever) on Windows Vista, it presented several problems that were eventually traced to Eclipse itself being in a directory whose path contained a space...

Reuben Scratton
Thanks all for the prompt replies. I'm new to android development so I really appreciate any/all help I can get. I apologize in advance if I ask some really noob questions ;)
LuxuryMode
A: 

Clean works sometimes and should be tried. I also find that blowing away the gen directory and refreshing will cause it be to rebuilt. Try that as well.

However, sometimes even that doesn't work and I've been forced to remove the project from Eclipse and then re-import it. This, unfortunately, works for me every time if the above has not.

Good luck.

Gray
A: 

Is this a bug of eclipse3.6 or ADT?

dawnmy
Not sure. Sounds like eclipse though, no?
LuxuryMode