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

查看:41
本文介绍了如何解决 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.

它们使用相同的属性.

还有 Actionbarsherlock 已被作者 2 年前弃用.

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天全站免登陆