Java.lang.verifyerror how do I fix or even find out the root cause?

前端 未结 4 1191
走了就别回头了
走了就别回头了 2020-12-03 22:26

\"enterCurrently going through a nightmare attempting to fix a java.lang.verifyerror, was havi

相关标签:
4条回答
  • 2020-12-03 23:11

    I just enabled the 3rd party library in the "Import and export" TAB of configuring build path.

    enter image description here

    0 讨论(0)
  • 2020-12-03 23:18

    This is a problem with ADT v22. It is pretty hard to fix. There are some suggestions here: The CommonsBlog - Don't Manually Modify Your Eclipse Build Path... Except Now for R22 (thanks to StreetsOfBoston and CommonswareGuy)

    0 讨论(0)
  • 2020-12-03 23:21

    If the answer by @G. Blake Meike doesn't work for you for whatever reason, here's another way of fixing it.

    1. Right Click Project > Build Path > Configure Build Path
    2. Click on Android on left
    3. On right select any other Target Name/API other than 4.2.2 since it seems that's with problems.
    4. Hit OK (At this point it rebuilds your projects with the selected API)
    5. Run the Application

    Hope that helps.

    0 讨论(0)
  • 2020-12-03 23:32

    So, as far as I'm aware, Android uses a different class file format and if you are running a third party JAR/Java files, you have to first run them through the dx tool that ships with the Android SDK.

    Other possible reason may probably be some method in a java.lang class that is not supported on the Android SDK level you are using (for instance, String.isEmpty()).

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