actionbarsherlock 4.3 and sliding menu integration

 ̄綄美尐妖づ 提交于 2019-12-10 12:20:14

问题


Working with the sliding menu and the new actionbarsherlock I am having problems with the jar mixmatch: Fix dependencies for the sample project on the sliding menu to work on. Does anyone know what is going on ??

I also did see this tutorial, but still I am getting a very strange error. Help please. If there is another simple way to implement the facebook like sliding menu other than this library, please do post


回答1:


Actionbarsherlock has the support library in it. This probably causes a conflict if the support library is also in your main project.

Remove android-support-v4.jar from your project's libs directory to solve the problem.




回答2:


please use this link

Snapshot:




回答3:


I guess that both libs contain android-support-v4.jar (and maybe your own project too), and it should be in the build path only once. Put the jar into your own project, remove it from both lib-project's build path and edit their build paths to use the jar in your own project.




回答4:


Both SlidingMenu and ActionbarSherlock can have their own support libraries in their own build paths as long as there is only one support library in main project's build path.

Check your project's Build Path/Libraries/Android Dependencies and there should only be one android-support-v4.jar file there (it does not matter from which project support library is imported). If there are duplicate support libraries, remove the extra ones from build path and give it a try that way.



来源:https://stackoverflow.com/questions/16033855/actionbarsherlock-4-3-and-sliding-menu-integration

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