Okay so here is what I am doing, I am trying to create a very simple android application and since it is my first time I tried following a tutorial from hackaday.com 

<http://hackaday.com/2010/07/21/android-development-101-part-3introduction-to-databases/>

And now I have all the codes in place. The only problem is, I am getting an error in `setContentView(R.layout.activity_main)`. Here is my code

```
package com.ernest.randomquotes;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.content.Context;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;
import com.ernest.randomquotes.R;

public class MainActivity extends Activity {
    **@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }
    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_main, menu);
        return true;
    }
}**

```

As you can see I even imported the `com.ernest.randomquotes.R` but still it returns an error. I also tried deleting the gen folder since I read a few answers here in stackoverflow and it worked for them. I get that the `.R` is generated in the gen folder right? So why is it not generating for me? 

Believe me I've researched for hours and I still encounter errors