We are new to Android and we are trying to develop a new application. We have installed all the basic Android settings. We tried to run Android Sample projects in Eclipse. But for now, compiling the following lines and several other lines that use the "R" variable throws an error.
setContentView (R.layout.activity_main);
'R cannot be resolved to a variable'. I do not understand what causes the error. Someone help me on this.
source share