R.layout.main error, no solutions have worked

Posted by user3404278 on Stack Overflow See other posts from Stack Overflow or by user3404278
Published on 2014-05-30T15:20:34Z Indexed on 2014/05/30 15:25 UTC
Read the original article Hit count: 168

Filed under:
|
|
|

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?

© Stack Overflow or respective owner

Related posts about android

Related posts about package