actionbarsherlock 4.3 and sliding menu integration
Asked Answered
H

4

0

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

Houk answered 16/4, 2013 at 9:50 Comment(0)
F
2

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.

Farmyard answered 16/4, 2013 at 9:59 Comment(4)
didn't work, I still have the sliding menu library that I am referencing to ... plus the example seems to be implementing its own jar file ... so all in all there are three separate jar filesHouk
does your sliding menu library also have have support library library. Remove the andorid-support-v4.jar from that and give it a tryFarmyard
oh my it worked ...thank you so so much. really happy that it finally did work.Houk
This is because different version of jar files, you can place either ABS v4 jar file in the sample list or place sample list v4 jar file in abs, it will work fine. make sure both uses same version of jarUllyot
D
3

please use this link

Snapshot:

enter image description here

Doughboy answered 16/4, 2013 at 9:58 Comment(1)
how to use this as fragment means on on click of item call a new activity in fragment.Dunno
F
2

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.

Farmyard answered 16/4, 2013 at 9:59 Comment(4)
didn't work, I still have the sliding menu library that I am referencing to ... plus the example seems to be implementing its own jar file ... so all in all there are three separate jar filesHouk
does your sliding menu library also have have support library library. Remove the andorid-support-v4.jar from that and give it a tryFarmyard
oh my it worked ...thank you so so much. really happy that it finally did work.Houk
This is because different version of jar files, you can place either ABS v4 jar file in the sample list or place sample list v4 jar file in abs, it will work fine. make sure both uses same version of jarUllyot
M
0

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.

Manaker answered 16/4, 2013 at 9:57 Comment(3)
you are correct about the libs and the project too ... but how do I do the stuff you just mentioned ... a little more elaboration please ... very new to android.Houk
So, now you have 3 projects, ownProject, sherlockProject and slidingProject. Delete android-support-v4.jar from slidingProject and sherlockProject, and if it is not there, put it into ownProject/libs folder. Open the build path of sherlockProject, and add ownProject/libs/android-support-v4.jar to it, repeat this to slidingProject and ownProject. Clean all projects.Manaker
or put the jar into sherlockProject/libs, and add it to the build path of sherlockProject and slidingProject like I wrote it above, and this way you won't have to put it inot ownProject's build path az it will be already included as sherlockProject is included as a library project to ownProjectManaker
N
0

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.

Nord answered 16/4, 2013 at 10:41 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.