title: How do I fix NoClassDefFoundError in Android for android.widget.PopupMenu?
body: <p>I am trying to create a popup menu and I keep getting java.lang.NoClassDefFoundError: android.widget.PopupMenu</p>
  
  <pre><code>    public void showPopup(View v) {
      PopupMenu popup = new PopupMenu(this, v);
      MenuInflater inflater = popup.getMenuInflater();
      inflater.inflate(R.menu.tweet_menu, popup.getMenu());
      popup.show();
  }
  </code></pre>
  
  <p>I realize this error means that the class is found in the classpath at compile, but not at runtime, but I am having trouble figuring out why, as this is part of Android SDK.  I am using the newest version of the SDK and I am developing/compiling in Netbeans.</p>
  
  <p>Please help!</p>