【转】java.lang.NoClassDefFoundError: com.jayway.android.robotium.solo.Solo

原创地址:http://blog.csdn.net/brucezhang0/article/details/7449551


java.lang.NoClassDefFoundError: com.jayway.android.robotium.solo.Solo错误解决

java.lang.NoClassDefFoundError: com.jayway.android.robotium.solo.Solo
at com.skymobi.android.qc.test.RobotTest .setUp(RobotTest.java:46)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169)
at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154)
at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:529)
at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1448)

在eclipse中进行如下设置

  1. "Properties > Java Build Path > Libraries", delete "Android Dependencies" in my test project.
  2. "Properties > Java Build Path > Libraries", delete two robotium jar and click "Add JARs" to re-import robotium jar in my test project.
  3. "Properties > Java Build Path > Order and Export", check two checkbok of robotium jar (and othera you want exported.)
  4. Clean my test project.

你可能感兴趣的:(【转】java.lang.NoClassDefFoundError: com.jayway.android.robotium.solo.Solo)