错误:找不到符号变量 abc_ic_ab_back_mtrl_am_alpha [英] error: cannot find symbol variable abc_ic_ab_back_mtrl_am_alpha
问题描述
我使用 New > 在我的 Android Studio 项目中添加了一个 Fragment片段 >片段(空白)
.结果当我尝试运行时,该项目将无法编译,因为它无法解析
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?
看来我也无法访问 android:buttonTint
推荐答案
资源名称已在 23.2.0 支持库中更改.
The name of the resource was changed in the 23.2.0 support library.
修改 abc_ic_ab_back_mtrl_am_alpha
到 abc_ic_ab_back_material
在 23.2.1 组件的名称改回 abc_ic_ab_back_mtrl_am_alpha
In 23.2.1 the name of the component was changed back to abc_ic_ab_back_mtrl_am_alpha
在 24.0.0 中,组件的名称更改为:abc_ic_ab_back_material
In 24.0.0 the name of the component was changed to: abc_ic_ab_back_material
这篇关于错误:找不到符号变量 abc_ic_ab_back_mtrl_am_alpha的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!