title: setSupportActionBar (androidx.appcompat.widget.Toolbar) in AppCompatActivity cannot be applied
body: <p>An error showing incompatible types Android widget toolbar cannot be converted in Java compiler while working on Android Studio.</p>
  
  <pre><code>    Toolbar toolbar = (Toolbar)findViewById(R.id.toolBar);
      toolbar.setTitle("GPS PRESENCE SYSTEM");
      setSupportActionBar(toolbar);
  </code></pre>
  
  <blockquote>
    <p>Error: incompatible types: android.widget.Toolbar cannot be converted
    to androidx.appcompat.widget.Toolbar</p>
  </blockquote>