How can I resolve actionbarSherlock conflict with appcompat? [closed]

巧了我就是萌 提交于 2020-01-16 18:29:52

问题


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.

How can I fix it?


回答1:


You can't use together ActionbarSherlock and Appcompat library.

They use the same attributes.

Also Actionbarsherlock was deprecated by the author 2 years ago.

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).



来源:https://stackoverflow.com/questions/46299215/actionbarsherlock-conflicts-facebooks-sdk-facebook-android-sdk4-5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!