Jonathan, Thanks for your help. I was not too clear I am afraid. My test app is able to create an object that is defined in the library, so I am thinking this dependency is OK. The crazy thing is that inside the library, one method makeas a class to a library method and gets the no class found error. Is there something obvious I am missing? Once again, thanks.
Doug On Monday, January 26, 2015 at 4:53:10 PM UTC-5, Jonathan S wrote: > > Okay, you supposed to get this error if this class is not FOUND by > runtime. > > Check your dependency for that library. > > On Monday, January 26, 2015 at 10:25:21 AM UTC-5, pdm-tex wrote: >> >> Jonathan S: >> com.dsi.client.lib.UniMagII is class that manages interaction with a Mag >> Stripe Reader on the headset jack. The ctor gets an app context from the >> client. Please let me know if you have other questions. >> >> On Friday, January 23, 2015 at 4:34:28 PM UTC-5, Jonathan S wrote: >>> >>> What is com.dsi.client.lib.UniMagII for? >>> >>> On Friday, January 23, 2015 at 3:13:30 PM UTC-5, pdm-tex wrote: >>>> >>>> I have an Android library project that is giving me a problem. To test >>>> it I have a client application. If I add the library project in the >>>> Android settings my client application runs fine. To test the library I >>>> remove the setting for the library in the Android properties page. If I >>>> take the jar file that is created in the library's bin directory and add >>>> it >>>> to the clients lib directory. I would think it would run. Instead, I am >>>> getting a NoClassDefFoundError. >>>> The client is able to instantiate one class from the library. The >>>> called method inside the library is where the No Class Def shows up. >>>> >>>> I have to disclose that this was working and I had been able to even >>>> use obfuscated versions of my library. I cannot imagine what I might have >>>> changed, but if you know of any subtle path setting or something please >>>> let >>>> me know. I am attaching a stack trace. the library classes are all in >>>> com.dsi.client.lib, the test is com.dsi.winwardsample. >>>> >>> > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] 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 unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.

