How to fix java.lang.VerifyError in Android for ADT-22

Published by Igor Khrupin on

I had one problem when migrated to ADT-22.

I’ve renamed “lib” dir to “libs” and project compiled.
And when I run project on Android device the “java.lang.VerifyError” error crashes my app.
In the LogCat I saw that some of classes were rejected by Verifier: “Verifier rejected class …..”

And I found solution.

There problem in two checkboxes in project properties. Lets look the screenshots.

This screenshot show properties before fix:

And this screenshot after fixing:

To fix it you need put ticks near:
– Android Private Libraries
– Android X.X.X

Hope it help you


0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.