java.lang.VerifyError

后端 未结 2 584
温柔的废话
温柔的废话 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).

提交回复
热议问题