Robotium Instrumentation run failed due to 'java.lang.ClassNotFoundException'
来源:互联网 发布:mysql gtid 1236 编辑:程序博客网 时间:2024/05/21 15:46
创建了一个Robotium测试工程,运行的时候提示 Instrumentation run failed due to 'java.lang.ClassNotFoundException' 试了很多解决方法,下面把解决方案汇总下,说不定以后也会出现同样的问题。
1.没有加入JUnit4的测试包
Build Path -> Configure Build Path -> Liabraries 添加JUnit4测试框架
2.AndroidManifest中添加
<instrumentation
android:name="android.test.InstrumentationTestRunner"
android:targetPackage="com.qihoo.freewifi" />
3.如果lib文件下有依赖的包
删除android-support-v4.jar
0 0
- Robotium Instrumentation run failed due to 'java.lang.ClassNotFoundException'
- Test run failed: Instrumentation run failed due to 'java.lang.ClassNotFoundException'
- Test run failed: Instrumentation run failed due to 'java.lang.ClassNotFoundException'
- Instrumentation run failed due to 'java.lang.IllegalAccessError'
- Android问题:Test run failed: Instrumentation run failed due to 'java.lang.RuntimeException'
- 解决Test running failed: Instrumentation run failed due to 'java.lang.IncompatibleClassChangeError'
- Test run failed: Instrumentation run failed due to 'Process crashed.'
- Test run failed: Instrumentation run failed due to 'Process crashed.'解析
- Test run failed:Unable to find instrumentation target package
- robotium真机调试出现Installation failed due to invalid APK file!错误的解决办法
- Android异常总结---Test run failed:Unable to find instrumentation target package
- 安卓单元测试错误Test run failed: Unable to find instrumentation target package解决办法
- Android单元测试Test run failed: Unable to find instrumentation target package
- android单元测试Test run failed: Unable to find instrumentation target package: com.abc.wallpaper.test
- 【转】Andriod 单元测试 Test run failed:Unable to find instrumentation target package的问题
- Test run failed: Unable to find instrumentation target package: org.XXX.XXXX
- Android单元测试异常总结---Test run failed:Unable to find instrumentation target package
- Test run failed: Unable to find instrumentation target package: android.support.v7.appcompat
- java.util.Date、java.sql.Date、java.sql.Time、java.sql.Timestamp区别和总结
- keytool 错误 java.io.IOException: incorrect keystore format
- leetcode: Combination Sum III
- Java实现网络爬虫
- 拉格朗日中值定理 简明版
- Robotium Instrumentation run failed due to 'java.lang.ClassNotFoundException'
- fatal error LNK1140临时解决方案
- #pragma
- HDU 1969:Pie【二分法】
- CAST发布新款8051 IP内核R8051XC2
- java String功能--13
- 重写了equals()为什么要重写hashCode()方法
- 关于 python 的类
- DB---字符流的流出