V4包升级有些drawable资源改名,出现找不到的情况

来源:互联网 发布:淘宝怎么换头像 编辑:程序博客网 时间:2024/05/16 09:31

问题如下,在gradle中把

compile 'com.android.support:appcompat-v7:23.4.0'
升级成
compile 'com.android.support:appcompat-v7:24.2.1'
时候有一些drawable 改名后找不到:

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


处理办法如下:改名

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






0 0
原创粉丝点击