robotium 常見問題

java.lang.NoClassDefFoundError: com.jayway.android.robotium.solo.Solojava

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中進行以下設置
 

"Properties > Java Build Path > Libraries", delete "Android Dependencies" in my test project.android

"Properties > Java Build Path > Libraries", delete two robotium jar and click "Add JARs" to re-import robotium jar in my test project.app

"Properties > Java Build Path > Order and Export", check two checkbok of robotium jar (and othera you want exported.)eclipse

Clean my test project.ui

相關文章
相關標籤/搜索