I create Android Test Project test my Android Project.If my android project don't use 3rd project method than run success,else run error.I export the 3rd project to test project.
2010/8/6 A. Elk <lancaster.dambust...@gmail.com> > Are you testing with a standard JUnit project, or with an Android > JUnit project? > > Please note that standard JUnit will only work with plain Java > objects. If you need to test anything that calls the Android API, you > should use AndroidTestCase as the test case class and use > InstrumentationTestRunner as your test runner. SDK 2.2 documentation > contains instructions for setting up an Android JUnit test project. > > If your application depends on another project, be sure to export the > classes from the 3rd project, otherwise JUnit might not be able to see > them. Search this group; somebody else asked about a similar problem > yesterday. You need to export classes in the Java Build Path section > of the project settings. > > On Aug 4, 9:24 pm, CaryWang <wangjf...@gmail.com> wrote: > > I want use JUnit test my project,but sometime test > > error(java.lang.IllegalAccessError: cross-loader access from pre-verified > > class).Because my project import another java project.I don't know how to > > do? > > > > -- > > Cary > > -- > 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 > -- Cary -- 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