ActionBarDrawerToggle doesn't accept String as parameter

Advertisements the Red line is under "Open navigation drawer" and "Close navigation drawer" import androidx.appcompat.app.ActionBarDrawerToggle; setContentView(R.layout.activity_home); Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); toolbar.setTitle("Menu"); setSupportActionBar(toolbar); DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout); ActionBarDrawerToggle toogle = new ActionBarDrawerToggle(this, drawer, toolbar , "Open navigation drawer", "Close navigation drawer" ); drawer.setDrawerListener(toogle); toogle.syncState(); This picture shows the problem >Solution : If you check… Read More ActionBarDrawerToggle doesn't accept String as parameter