R cannot be resolved to a variable , syntax errors in program that was working fine day before
Joined: Sep 30, 2012
Line 15 and 22 complain that
R cannot be resolved to a variable
I have tried removing the
statement and even renaming it to import com.HelloWorld.firstandroidproject.R;
but the syntax errors still persist ...
Thanks a bunch everyone
Joined: Mar 22, 2005
You should not have to import anything, it should just work - how are you building the project? The R.java (and R.class) files are generated automatically, and part of the package that's listed in AndroidManifest.xml - which in your case should be "com.example.firstandroidproject", not "com.HelloWorld.firstandroidproject".