Can anyone help me to create jar file of sliding menu project. https://github.com/jfeinstein10/SlidingMenu ? If i add the jar file which is created then im getting exception java.lang.NoClassDefFoundError: com.slidingmenu.lib.R$styleable. I dont want to add entire project as dependent but need to add the jar.
Asked
Active
Viewed 2,397 times
2
-
you can't ... even if compiled code is in the jar you still need resources as another project – Selvin Feb 19 '13 at 06:59
1 Answers
5
Projects that use resources of their own (layouts, manifest entries etc) cannot be converted into a jar successfully. This is the reason it is recommended that you use it as an Android library project. Unless a project is pure java code with no resources of it's own, converting it into jar is not gonna be successful.

Community
- 1
- 1

Anup Cowkur
- 20,443
- 6
- 51
- 84