appcompat V21:材质设计动作条()InflateException错误充气类 [英] appcompat v21: material design ActionBar() InflateException error-inflating-class

查看:168
本文介绍了appcompat V21:材质设计动作条()InflateException错误充气类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

试图移动应用程序中( 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

<一个href="http://stackoverflow.com/questions/21386077/error-inflating-class-android-support-v7-internal-widget-actionbarview">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:

<一个href="http://stackoverflow.com/questions/26888089/multiple-dex-files-define-landroid-support-v4">multiple DEX文件定义Landroid /支持/ V4 / 。

这篇关于appcompat V21:材质设计动作条()InflateException错误充气类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆