R.layout.main error, no solutions have worked
- by user3404278
I am just beginning to develop for Android. The tutorial book I am using uses the code below, but, put simply, it does not work. As I've searched for an answer, I find that none of the solutions people say have rid them of this error have worked for me. Here is a list of methods that did not work.
-Cleaning: It just said it couldn't clean until I resolved the error.
-Building the Project: It built it, but the error did not go away.
-Deleting import R: The error did not go away.
-Renaming import R to import me.package.R: The error persisted.
Here is the code that is generating the error.
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
Can anyone help me out?