appcompat V21:材质设计动作条()InflateException错误充气类材质、错误、动作、appcompat

2023-09-12 02:55:25 作者:偷走了心跳

试图移动应用程序中( appcompat V20 )向新库 appcompat V21

Trying to move app made in (appcompat v20) to the new library appcompat v21

appcompat-V7:20 工作不错

我做到了这一点:

ActionBarActivity implements ActionBar.TabListener, ActionBar.OnNavigationListener

和有这样的:

android.view.InflateException:二进制XML文件中的行#17:错误充气类android.support.v7.internal.widget.ActionBarOverlayLayout

Error充气类android.support.v7.internal.widget.ActionBarView

推荐答案

问题比它似乎更深刻。

我的code是正确的。所有相关和正确的意见在主题。

My code was correct. All the advice in the subject relevant and correct.

原来,外部库包含旧版本的支持-V4 ,这确实不支持 材料设计(appcompat -V7:21)但只有 appcompat-V7:20

It turned out that external libraries contain old versions support-v4, which does not support MATERIAL DESIGN(appcompat-v7:21) but only appcompat-v7:20

这是对动作条()InflateException错误充气类的原因。

更新支持-V4 所有的外部库将解决这个问题。

Update support-v4 in all external libraries will solve the problem.

我在其他话题build.gradle:

My build.gradle in other topic:

multiple DEX文件定义Landroid /支持/ V4 / 。