Android IDE (AIDE) Support Forum

Unknown method setSupportActionBar

Why does this happen? I was trying to make an action bar or toolbar

Try extending AppCompatActivity instead of Activity.
setSupportActionBar(tol); ✓
setSupportActionBar(AppBarLayout); ×

The extending worked! Thank you!