Android项目运行junit测试类时出现错误Internal Error (classFileParser.cpp:3494)的解决办法
来源:互联网 发布:崔钟博文 知乎 编辑:程序博客网 时间:2024/06/07 20:01
以前的项目运行好好的,升级了ADT后,进行junit测试时出现错误:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (classFileParser.cpp:3494), pid=7480, tid=7376
# Error: ShouldNotReachHere()
#
# JRE version: 6.0_29-b11
# Java VM: Java HotSpot(TM) 64-Bit Server VM (20.4-b02 mixed mode windows-amd64 compressed oops)
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
#
解决办法:
解决办法:
1.选中junit测试类,右键 -> Run As -> Run Configurations...
2.切换到Classpath选项栏,删掉Bootstrap Entries里面的Android Library,然后点击右侧的Advanced.. -> Add Library -> JRE System Library,一路next即可。
这时再运行该类,就能正常运行了。
- Android项目运行junit测试类时出现错误Internal Error (classFileParser.cpp:3494)的解决办法
- Android项目运行junit测试类时出现错误Internal Error (classFileParser.cpp:3494)的解决办法
- Android项目运行junit测试类时出现错误Internal Error (classFileParser.cpp:3494)的解决办法
- Android项目运行junit测试类时出现错误Internal Error (classFileParser.cpp:3494)的解决办法
- Android项目运行junit测试类时出现错误Internal Error (classFileParser.cpp:3494)的解决办法
- Error处理:Internal Error (classFileParser.cpp:3494)
- Internal Error (classFileParser.cpp:3075)处理
- 使用Android Studio运行项目出现 UnsupportedMethodException 错误的解决办法
- 使用Android Studio运行项目出现 UnsupportedMethodException 错误的解决办法
- 使用Android Studio运行项目出现 UnsupportedMethodException 错误的解决办法
- 运行android项目时出现Installation error: INSTALL_FAILED_INSUFFICIENT_STORAGE错误!
- Internal Error (classFileParser.cpp:3075), pid=520, tid=3636 Error: ShouldNotReachHere()
- JVM BUG: Internal Error (classFileParser.cpp:3161), pid=1116, tid=3912 Error: ShouldNotReachHere()
- Internal Error (classFileParser.cpp:3075), pid=520, tid=3636 Error: ShouldNotReachHere() .
- Internal Error (classFileParser.cpp:3075), pid=520, tid=3636 Error: ShouldNotReachHere()
- Internal Error (classFileParser.cpp:3161), pid=3412, tid=140710895388416 Error: ShouldNotReachHer
- 500 Internal server error 部署ASP.NET项目时出现的错误
- 创建Maven项目出现:An internal error occurred during: "Retrieving archetypes:". Java heap space 错误解决办法
- 我的理想,我的大学
- C语言编程问题:因式分解 参数返回问题
- test
- 使用 bat 文件管理计算机服务
- C#中String与string的区别
- Android项目运行junit测试类时出现错误Internal Error (classFileParser.cpp:3494)的解决办法
- python pop 和remove
- HTML的学习总结(一)
- java常用包
- U-boot 添加命令 U_BOOT_CMD
- 获取Android设备信息
- ini文件读写 保存上次存储内容
- 写C++代码应该养成的好习惯
- JS 清除IE缓存 以及 session id的传递