I am building an android app in eclipse, and I decided to rename the package of the app under "src", by right-clicking the package and choosing "Refactor" and then "Rename". I did the same for the package under "gen". I then renamed the package in the AndroidManifest.xml. However I now have a "R cannot be resolved to a variable" error. In my package under "gen" there is no R.java file, only a "BuildConfig.java".
I have tried cleaning the project and re-building after deleting the "gen" folder. I have no "import android.R" statements in any of my classes, and eclipse is saying there are no errors in my xml files. All of my xml and image files are named in all lowercase with no special characters. I have tried restarting eclipse a number of times.
How can I fix this problem and get R.java back to get my code working again? Thank you.