title: Error: Unknown Member Menu
body: <p>I am trying to create a popup menu, but i am getting this error, saying "unknown member 'menu' of com.popup.trial.R</p>
  
  <p>What should I do?</p>
  
  <p>my xml file:</p>
  
  <pre><code>&lt;menu xmlns:android="http://schemas.android.com/apk/res/android" &gt;  
      &lt;item  
  android:id="@+id/one"  
  android:title="One"/&gt;  
      &lt;item  
  android:id="@+id/two"  
  android:title="Two"/&gt;  
  &lt;/menu&gt; 
  </code></pre>
  
  <p>and my java:</p>
  
  <pre><code>        @Override
          public void onClick(View v) {  
              PopupMenu popup = new PopupMenu(MainActivity.this, settings2);  
              popup.getMenuInflater().inflate(R.menu.popup_menu, popup.getMenu());  
              popup.setOnMenuItemClickListener(new PopupMenu.OnMenuItemClickListener() {  
                      public boolean onMenuItemClick(MenuItem item) {  
                          Toast.makeText(MainActivity.this,"You Clicked : " + item.getTitle(),Toast.LENGTH_SHORT).show();  
                          return true;  
                      }  
                  });  
              popup.show();
          }  
      });
  </code></pre>