title: androidx.appcompat.widget.SearchView cannot be cast to android.widget.SearchView
body: <p>When I launch my app the following error is thrown:</p>
  
  <blockquote>
    <p>E/AndroidRuntime: FATAL EXCEPTION: main
        Process: com.example.app, PID: 5513
        java.lang.ClassCastException: androidx.appcompat.widget.SearchView cannot be cast to android.widget.SearchView
            at com.example.app.MainActivity.onCreateOptionsMenu(MainActivity.java:169)</p>
  </blockquote>
  
  <p>I am trying to use a searchview in the app bar.</p>