码迷,mamicode.com
首页 > 其他好文 > 详细

robotium 常见问题

时间:2014-11-05 14:26:02      阅读:120      评论:0      收藏:0      [点我收藏+]

标签:android   io   ar   java   sp   strong   div   on   art   

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中进行如下设置
 

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

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

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

Clean my test project.

 

robotium 常见问题

标签:android   io   ar   java   sp   strong   div   on   art   

原文地址:http://www.cnblogs.com/liubingna/p/4076149.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!