本文介绍了错误:找不到符号变量abc_ic_ab_back_mtrl_am_alpha的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我使用New > Fragment > Fragment (Blank)向我的Android Studio项目添加了一个片段.结果,当我尝试运行时,项目无法编译,因为它无法解析

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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 20:26