title: How to add date picker in android
body: <p>I am trying to add date picker in android app. When I drag and drop the date picker error is shown on the screen. The error is -</p>
  
  <p>"The following classes could not be found:
  - CalendarView (Change to android.widget.CalendarView, Fix Build Path, Edit XML)
  - DatePicker (Change to android.widget.DatePicker, Fix Build Path, Edit XML)"</p>
  
  <p>Following is the xml code of datepicker - </p>
  
  <pre><code>&lt;DatePicker
          android:id="@+id/datePicker1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_x="83dp"
          android:layout_y="72dp" /&gt;
  </code></pre>
  
  <p>I am new to Android. Please Help.</p>