Reputation: 413
Since installing v17 of the android build tools I am getting a VerifyError in my test project.
A short description of my project structure:
All jar files exist in my main projects libs folder
The test-project is a project that resides inside my main project
All Instrumentation tests exist in the same package as my activities.
I have one jar that is only needed for the test projects in my libs folder in the test project
Has anyone seen this? Its happening on all my projects since updating. Running the test produces an InstrumentationException: java.lang.VerifyError
Upvotes: 12
Views: 1840
Reputation: 11
in my case, first, add robotium-solo-2.5 in properties->build path->Libraries,and then move robotium-solo-2.5.jar to the top in properties->build path->Order and export, finally i solve this funny problem easily...
Upvotes: 1
Reputation: 827
[email protected] made a temporary fix for an issue I reported: http://code.google.com/p/android/issues/detail?id=27608.
You can try to see if the new anttasks.jar file can fix your problem.
It fixed mine. NoClassDefFoundError when running Instrumentation test with ant
Upvotes: 6
Reputation: 14399
The way Android deals with dependencies has recently changed. If you are using eclipse, then just remove your jar imports and place them in a "libs"-folder in the project root, and everything will be imported automatically.
Upvotes: 0
Reputation: 3181
In my case, I have a test project using the library of "robotium". I'd had the same problem, and soleved by following steps,
I think you also solve the problem, Good Luck!
more information
Upvotes: 5
Reputation: 84
“Properties > Java Build Path > Order and Export”, and check all the references you want exported.
Upvotes: 0