简体   繁体   English

Sherlock ActionBar和“滑动”菜单不起作用

[英]Sherlock ActionBar and Sliding menu not worked

In my application i want to use sliding menu and the Action bar which i should use is Sherlock Action bar im use this library https://github.com/jfeinstein10/SlidingMenu and this http://actionbarsherlock.com/ but when Add ActionBarSherlock as a dependency to SlidingMenu my project give me error: Jar mismatch! 在我的应用程序中,我想使用滑动菜单,而我应该使用的动作栏是Sherlock动作栏,即使用此库https://github.com/jfeinstein10/SlidingMenu和此http://actionbarsherlock.com/,但是在添加ActionBarSherlock时作为对SlidingMenu的依赖项,我的项目给我错误:Jar不匹配! Fix your dependencies 解决您的依赖

As SlidingMenu Library Contains android-support-v4 which also presents in your project libs folder. As SlidingMenu库包含android-support-v4,它也出现在您的项目libs文件夹中。 Try to delete that from your library project. 尝试从您的库项目中删除它。 And then clean your project. 然后清理您的项目。

Your ProjectFolder>>Lib Folder>> android-support-v4.jar 您的ProjectFolder >>库文件夹>> android-support-v4.jar

Your projects android-support-v4.jar this lib paste in Lib folder of slidingmenulibrary and ActionBarSherlock . 您的项目android-support-v4.jar将此lib粘贴在slidemenulibrary和ActionBarSherlock的Lib文件夹中。 and Then Clean Your project 然后清理您的项目

may it helps You 可能对您有帮助

即时通讯解决了问题,我使用过appcompat-v7和actionbarsherlock即时通讯删除了appcompat-v7 libsolved问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM