getting a add cannot be resolved or is not a field and ic_menu_refresh cannot be resolved or is not a field error
<p>I am using eclipse and learning android out of a book.  I am copying code to learn about menus and am getting these two errors and cannot figure out why.</p>

<pre><code> @Override
public boolean onCreateOptionsMenu(Menu menu){
    menu
    .add(Menu.NONE, MENU_ADD, Menu.NONE, "Add")
    .setIcon(android.R.drawable.ic_menu_add);
    menu
    .add(Menu.NONE, MENU_RESET, Menu.NONE, "RESET")
    .setIcon(android.R.drawable.ic_menu_refresh);//error here.
</code></pre>

<p>This is the ic_menu_refresh cannot be resolved or is not a field error
ic_menu_refresh does not show up as one of the options ic_menu_add did.</p>

<p>The getting a add cannot be resolved or is not a field error</p>

<pre><code>private void add(){
final View addView=getLayoutInflater().inflate(android.R.layout.add, null);//add is the source of the error.
</code></pre>

<p>Here are the libraries I am using</p>

<pre><code> package com.commonware.android.menus;
 import java.util.ArrayList;
 import android.app.AlertDialog;
 import android.app.ListActivity;
 import android.content.DialogInterface;
  import android.os.Bundle;
 import android.view.ContextMenu;
 import android.view.Menu;
 import android.view.MenuItem;
 import android.view.View;
 import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.EditText; 
</code></pre>

<p>I can include the rest of the code if needed</p>
