java.lang.VerifyError

后端 未结 2 583
温柔的废话
温柔的废话 2020-12-12 01:05

I am working on an Android project that uses classes and methods from a seperate JAR file I am also creating, and the issue is with a specific util class called XpathU

相关标签:
2条回答
  • 2020-12-12 01:35

    A typical scenario that leads to VerifyErrors: you have two different versions of a library, compile against version 1 and run with version 2. In that case, especially if method signatures have changed, the JVM might complain with a VerifyError.

    So for your case: double check that you use the very same XPathUtil.class file for building and executing. Maybe the JVM has an old version of this class on the classpath (maybe it has even more than one versions and choose the wrong one).

    0 讨论(0)
  • 2020-12-12 01:36

    When I updata ADT tool to version 18.0.0.v201203301601-306762 I also get the exception when I run the app.... finally i found the solution with adt update issue. When you build the android app project, you need to go to project Properties-> Order and Export, and let the third party jar checkbox to be checked, and clean and rebuild the project. The problem would be fixed......for example let the third party jar checkbox to be checked

    0 讨论(0)
提交回复
热议问题