2

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.

Nemo
  • 1,059
  • 3
  • 14
  • 31
  • 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 Answers1

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.

See: https://stackoverflow.com/a/2520113/1369222

Community
  • 1
  • 1
Anup Cowkur
  • 20,443
  • 6
  • 51
  • 84