Hi, If you move your jar to the assets directory and then include it as you did, it will do the trick.
cheers kim On Sun, Jul 18, 2010 at 8:51 PM, Peter Eastman <peter.east...@gmail.com>wrote: > I'm clearly missing something simple, but after nearly an hour of > trying to figure it out, I'm still stuck. > > I have an external jar file containing classes I want to use in my > project. No problem, right? I just followed the instructions at > > > http://developer.android.com/guide/appendix/faq/commontasks.html#addexternallibrary > > That is, I used the Properties->Java Build Path->Libraries panel to > add the jar to my project as a library. But it doesn't work. The > external library is being included in the compilation classpath, so > everything compiles correctly, but the external classes aren't > actually getting included in the apk. When I try to run my app, it > immediately crashes with a java.lang.NoClassDefFoundError. And > looking at the apk, I see it's only 20K, whereas the external library > jar is over 200K. > > What am I doing wrong? > > Peter > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en