http://developer.android.com/training/basics/firstapp/building-ui.html
I have been following this tutorial, but I have two errors, both \"R cannot be resolved to a v
You have to make sure to
import android.R;
<manifestxmlns:android="http://schemas.android.com/apk/res/android"
package="your.correct.package.name"
I had the same issue while following the tutorial. Cleaning the project or cleaning the imports did not solve the problem.
How the problem was (simply) solved : I quit Eclipse and relaunched it.
2 possible things
The package name specified in the Android Manifest isn't the same as the in the Java files.
Or, your IDE hasn't generated the R.java file in the gen/ folder. Try building again (despite the error) and it will usually clear it up.
Basically the R.java file is generated for you and in the same package so you can refer to it as simply R.
This fixed it for me: https://stackoverflow.com/a/3259974/1538785
Seems like eclipse likes to add an import line to java files for no reason. Go onto your java file, hit ctrl+shift+o and all the import statements will appear. Delete the line that says import andriod.R
Pleas confirm there is no error in
1- Project folder
2- Problem View of eclipse
3- Console
4- error log as in image
Right click on the Project, select "Android Tools" > "Add Support Library" > "Android Support Library, revision 11" > "Install"