Run your tests as Android JUnit tests. You can only run tests as JUnit tests if they do not reference any classes from within android.jar.
2009/10/23 Clément Plantier <[email protected]>: > > Hi, > > I'm having troubles with ADT and JUnit Testing. > > When I use HttpClient classes, my JUnit tests fail with errors like: > java.lang.NoClassDefFoundError: org/apache/http/client/HttpClient. > > I run my tests in Eclipse as "JUnit Tests" (not "Android JUnit Tests") > with the "Android Test Launcher". > An idea about how to resolve this problem? > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

