Question: Any ideas why at times Eclipse frizzles and doesn't recognize code it did seconds ago? The "R" in the code below has the red squiggle under it when it didn't 5 minutes ago and I've change no code. This happens frequently with Eclipse and usually I shut it down and start it again and it's good to go...no go this time.

```
// Initialize view elements
    mSearchBox      = (EditText) this.findViewById(R.id.edittext_search);
    mSearchButton   = (Button) this.findViewById(R.id.button_search);

```

Answer: 
This is Very common problem in Android just follow this, 

* Go to Project Menu
* Selection "clean" option.
* Make sure "Build Automatically Option is checked"

done, your R.java's error will get resolve.
In addition to the answers above, this error can occur if you haven't declared the package in the AndroidManifest.xml, or you have the wrong package declared. Ensure that you have

```
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.applicationname" ...

```