I have created a dummy Android project from within Android studio, and I can make it run, but the Editor itself fails to find the R class. In fact I can\'t find the gen fold
Another possibility is that the package you used has some issue - the target package is not the same with the defined one. In turn, R can not be found in the package.