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.

更多相关文章

  1. Android使用摄像头拍照
  2. EditText样式设置
  3. 错误~~悲剧
  4. android TextView加载html内容并加载图片
  5. 设置ImageView圆角及边框问题
  6. Android(安卓)TextView丰富多彩的字体样式代码
  7. Android通过MCC+MNC实现锁卡
  8. Android设置界面
  9. 给recyclerAdapter打造通用点击事件监听设置BaseRecyclerAdapter

随机推荐

  1. Android中的Binder机制
  2. Android试题(二)
  3. Android(安卓)socket通信,读去中文汉字乱
  4. RecyclerView Divider完美解决方案
  5. android studio 3.1 升级gradle4.4时所踩
  6. 自定义Android系统服务
  7. Android(安卓)EditText监听小数点让用户
  8. android应用开发:android网络通信
  9. NDK编译Libyuv
  10. Android之加载图片时自定义进度条