I am new to android programming and recently developed a weird error in my code. I was following a tutorial that directed the coder to go to project>clean (in eclipse). After I clicked it my code developed errors whenever I tried to access a resource. I received an error on the R. It said that the variable R cannot be recognized. Eclipse recommends that I import the package "R" which did not work. An example of the line of code that had the error on is:
setContentView(R.layout.activity_main);
After I imported "R" eclipse was unable to recognize/find activity_main
.