Then in the test app you MUST REFERENCE the project. Thanks to this blog for the excellent details on what to do!
Wednesday, June 6, 2012
Illegal Access Error and Referenced Projects
I've been writing a number of test classes for a very complex Android app. Recently I ran into a problem with a third party jar file misbehaving and throwing a java.lang.IllegalAccessError: Class ref in pre-verified class resolved to unexpected implementation. This is due to a class path problem. The solution is to reference like you normally would the jar in the source app and BE SURE TO EXPORT IT.(last tab in Eclipse properties-->Classpath
Then in the test app you MUST REFERENCE the project. Thanks to this blog for the excellent details on what to do!
http://blog.js-development.com/2010/06/android-instrumentation-test.html
Then in the test app you MUST REFERENCE the project. Thanks to this blog for the excellent details on what to do!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment