如何解决actionbarSherlock与appcompat冲突? [英] How can I resolve actionbarSherlock conflict with appcompat?

查看:110
本文介绍了如何解决actionbarSherlock与appcompat冲突?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个旧应用,使用actionbarSherlock和appcompact构建。我已经将项目从eclipse导入到gradle,但是当我编译项目时,shell向我显示了很多错误,警告我重复。像这样:

I have an old app, builds with actionbarSherlock and appcompact. I have import the project from eclipse to gradle, but when I compile the project the shell shows me a lot of errors that warnsme that there are duplicates. Like this:

Error: Attribute "subtitleTextStyle" has already been defined.

如何解决?

推荐答案

不能一起使用 ActionbarSherlock和Appcompat库。

You can't use together ActionbarSherlock and Appcompat library.

它们使用相同的属性。

2年前,作者也不赞成使用Actionbarsherlock

Also Actionbarsherlock was deprecated by the author 2 years ago.

我真的建议您切换到appcompat库。这样,您将能够使用所有新功能和新支持库(作为设计支持库)。

I really suggest you switching to appcompat library. In this way you will able to use all the new features and the new support libraries (as the design support library).

这篇关于如何解决actionbarSherlock与appcompat冲突?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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