[英]java junit and the exception java.lang.NoClassDefFoundError
I'm really confused. 我真的很困惑 I have a project "PROJ" and test project "PROJ.TEST"
我有一个项目“ PROJ”和测试项目“ PROJ.TEST”
PROJ is using classes from external.jar In PROJ.TEST I write a test that is testing class from PROJ but this class is using class from external.jar. PROJ使用来自external.jar的类在PROJ.TEST中,我编写了一个测试,测试来自PROJ的类,但是此类使用的是来自external.jar的类。
And here is the problem. 这就是问题所在。 I get an error: java.lang.NoClassDefFoundError Caused by: java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation
我收到一个错误:java.lang.NoClassDefFoundError原因:java.lang.IllegalAccessError:预验证类中的类ref被解析为意外的实现
I have searched all the Internet to find the answer but couldn't find it. 我搜索了所有互联网以找到答案,但找不到答案。 Even this great post http://blog.js-development.com/2010/06/android-instrumentation-test.html doesn't help me.
甚至这篇很棒的帖子http://blog.js-development.com/2010/06/android-instrumentation-test.html都对我没有帮助。 I tried many combinations with Java Build Path and nothing :(
我尝试了许多与Java Build Path的组合,但是什么都没有:(
Regards 问候
“ Android测试:外部库”一文可能包含您问题的答案和分步示例。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.