title: AlertDialog.Builder cannot be resolved to a type error
body: <p>I receive the error on the line below:</p>
  
  <pre><code>AlertDialog.Builder  alrtDialog = new AlertDialog.Builder(this);
  </code></pre>
  
  <p>The Error show is :</p>
  
  <blockquote>
    <p>AlertDialog.Builder cannot be resolved to a type</p>
  </blockquote>
  
  <p>I import the following for this:</p>
  
  <pre><code>import android.content.DialogInterface;
  </code></pre>
  
  <p>the java code in the example(from android programming unleashed) includes
  android.app.AlertDialog but importing this results in message: conflicts with a type defined in the same file</p>