first clean your project reassembly as follows:
Project ==> Clear ==> Check the project and click OK.
second, check your import, if there is import android.R , delete it, you must import R of your project:
example: import com.test.R;
Hello
source share