I know this question has been many times but trust me I have checked all. Most of the question suggests to remove import android.R , remove any error in the xml file
Make sure you installed the Android build tool
form sdk manager
project right click properties-> Java BuildPath select Library and add android-support.jar
the follow these step.
Go to Project->Properties->Java Build Path than select Order and export tab. Set android-support .jar
library checked and up it into top of the list. And clean and rebuild..It works for most of the cases