Quantcast
Channel: CSDN博客推荐文章
Viewing all articles
Browse latest Browse all 35570

关于运行robotium提示连接不上jar问题

$
0
0

robotium运行测试helloworld报错:

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)


解决办法:

1.程序引入robotium的 jar包

2."Properties > Java Build Path > Order and Export", 选中robotium的jar包?

作者:yafeng_0306 发表于2013-7-18 13:08:00 原文链接
阅读:60 评论:0 查看评论

Viewing all articles
Browse latest Browse all 35570

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>