Example code:
setContentView(R.layout.main);
Error:
R cannot be resolved
There\'s this error in all the class
Please do the following:
1.Check whether there are errors in your xml file. 2.Try to clean the project and run it.