After updating android support library 23.2.0
to 23.2.1
there is an error of R.drawable.abc_ic_ab_back_material
not found.
What is the updated resource used in version 23.2.1
?
After updating android support library 23.2.0
to 23.2.1
there is an error of R.drawable.abc_ic_ab_back_material
not found.
What is the updated resource used in version 23.2.1
?
1- Use
R.drawable.abc_ic_ab_back_material
instead ofR.drawable.abc_ic_ab_back_mtrl_am_alpha
2- in your build.gradle add the bellow value:
3- Use "srcCompat" attr instead of "src" in all xml:
don't forget to use another attr resource like this xmlns:app="http://schemas.android.com/apk/res-auto"
4- Add next line in your application class
5- Google recomend copy the R.drawable.abc_ic_ab_back_material and paste in your project.
source: https://android-developers.googleblog.com/2016/02/android-support-library-232.html
After researching some time I found that in version
23.2.1
google again introduced thedrawable R.drawable.abc_ic_ab_back_mtrl_am_alpha
which is removed in23.2.0
.So, changing to
R.drawable.abc_ic_ab_back_mtrl_am_alpha
fromR.drawable.abc_ic_ab_back_material
solve my problem.I had the same problem with my vector drawables. I used image vector drawable importer tool of Android Studio. it makes the object in
The problem solved by copying the drawable into
Folder.