error: cannot find symbol variable abc_ic_ab_back_mtrl_am_alpha

Nouvel Travay picture Nouvel Travay · Feb 25, 2016 · Viewed 24.4k times · Source

I added a Fragment to my Android Studio project using New > Fragment > Fragment (Blank). As a result when I try to run, the project won't compile because it cannot resolve R.drawable.abc_ic_ab_back_mtrl_am_alpha in

toolbar.setNavigationIcon(R.drawable.abc_ic_ab_back_mtrl_am_alpha);

Any ideas how to solve this?

It looks like I also lost access to android:buttonTint

Answer

Jon picture Jon · Mar 1, 2016

The name of the resource was changed in the 23.2.0 support library.

Modify abc_ic_ab_back_mtrl_am_alpha to abc_ic_ab_back_material

Edit: In 23.2.1 the name of the component was changed back to abc_ic_ab_back_mtrl_am_alpha

Edit: In 24.0.0 the name of the component was changed to: abc_ic_ab_back_material