How to add android.support.v7.widget.Toolbar

409 views Asked by At

I am using Android Studio ver. 3.6.2, and am following a tutorial to create a messaging application.

I could not find the android.support.v7.widget.Toolbar when adding a new resource file in the root element. When I choose android.widget.ToolBar the setSupportActionBar got an error.

1

There are 1 answers

0
Nour Eldien Mohamed On

Please try using

androidx.appcompat.widget.Toolbar