I have been trying for hours to figure out why I am getting this errr
R cannot be resolved to a variable
I am using the newest version of ABS (4.2) which I have added to eclipse as a project. I then added the project as a library to my project. Both manifests have:
<uses-sdk
android:minSdkVersion="7"
android:targetSdkVersion="17" />
This is the line throwing the error:
String label1 = getResources().getString(R.string.label1);
I have tried cleaning all projects, and restarting eclipse but nothing is working. My Activity is a SherlockActivity.
Any help would be much appreciated!
If the problem is with all the R, you have to delete the java-support library4 in the library from ActionBarSherlock and then Clean the project