1

i've had errors in my project so i saved my files on desktop then deleted the project. i remade the project and pasted my source file back in. it's saying R.java doesn't exist when it does.

any ideas?

thanks

turtleboy
  • 8,210
  • 27
  • 100
  • 199

3 Answers3

1

This file, R.java, is dynamically generated during build. You need to clean and then rebuild your project. This should resolve the issue.

inazaruk
  • 74,247
  • 24
  • 188
  • 156
  • no tried this and still this problem. every new project i create in eclipse has this problem....ERROR: Unable to open class file C:\Users\Mat\workspace2\recorder\gen\com\tecmark\R.java: No such file or directory [2011-01-30 10:40:26 - mm] ERROR: Unable to open class file C:\Users\Mat\workspace2\mm\gen\mm\mm\R.java: No such file or directory – turtleboy Jan 30 '11 at 11:02
1

Try to delete the file and then rebuild your project (a clean build could help too).

gosr
  • 4,593
  • 9
  • 46
  • 82
0

if you're having the problem for every new project, it could be this:

"Debug certificate expired" error in Eclipse Android plugins

that's what fixed it for me, even though I wasn't getting any debug certificate errors. apparently the debug certificate is only valid for one year.

Community
  • 1
  • 1
bmaupin
  • 14,427
  • 5
  • 89
  • 94