I am new to Android environment. For some reason, I am getting errors when trying to build. Specifically, these types where by the activity_main.xml layout file is being reported as not being found. However, I do see it there. There seems like there might be something messed up in my environment but I don’t know what? I consistently get these types of error whether the resource exists or not.
setContentView(R.layout.activity_main);
Any help appreciated.
Try these………
– 1st when you create a
,XMLfile like main.xml file, you will need aClassthat extendsActivityand that must be mentioned inAndroidManifest.xmlfile.– Clean the Project.
– Close Eclipse, and start it again. Don’t Restart but Close it. Eclipse does behave weirdly.