button can not be resolved
<p>This is my starting activity. I'm trying to get this button to work but it's been giving me this error.</p>

<p>Line 15 button can not be resolved.</p>

<pre><code>    package com.synamegames.giveaway;

import android.view.View.OnClickListener;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class GiveawayActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        final Button register = (Button) findViewById(R.id.register);
        button.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
                // Perform action on clicks

            }
        });
        setContentView(R.layout.main);
    }
}
</code></pre>
