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: 
did you accidentally import android.R.\*; by any chance? I imported this one and that makes eclipse not recognize all the other generated R classes, make sure you are importing the one from your project: 

```
import <project_name>.R;

```
As of Android Development Tool (ADT) 14, the resource fields such as R.id. are no longer constants when defined in the library project. This is necessary to make library projects reusable without recompiling them. 

There is an easy fix for R.id. that you know is correct but Android thinks it is incorrect. (Assuming that your .xml file is correct, your java code references the correct resource, and you DO NOT have the "import android.R;" statement)

1. Position the cursor on the switch statement and right click on it.
2. Select QUICK FIX. Eclipse will convert your switch staments into if-else if-else statements.
3. This should fix the R.id. issue.