I’m really confused. I have a project “PROJ” and test project “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.
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
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.
I tried many combinations with Java Build Path and nothing 🙁
Regards
The post Android Testing: External libraries probably contains the answer to your question and a step-by-step example.