Java.lang.verifyerror如何修复甚至找出根本原因?

时间:2013-05-26 23:23:07

标签: java android eclipse verifyerror

enter image description here目前正在经历一场试图修复java.lang.verifyerror的噩梦,因为我遇到了eclipse的问题所以我决定卸载并重新安装它,一切看起来都很正常,直到我尝试启动应用程序,那就是我注意到我不能再启动应用程序了,每次我试图让它崩溃并给我这个错误,但我不知道是什么导致它,因为错误日志给了我一些线索,我无法找到任何具体的答案互联网,谁能告诉我基于我的logcat有什么问题?任何帮助都会有很长的路要走,谢谢

05-26 23:11:45.391: E/AndroidRuntime(624): FATAL EXCEPTION: main
05-26 23:11:45.391: E/AndroidRuntime(624): java.lang.VerifyError: com/vineline/second/OTweetApplication
05-26 23:11:45.391: E/AndroidRuntime(624):  at java.lang.Class.newInstanceImpl(Native Method)
05-26 23:11:45.391: E/AndroidRuntime(624):  at java.lang.Class.newInstance(Class.java:1319)
05-26 23:11:45.391: E/AndroidRuntime(624):  at android.app.Instrumentation.newApplication(Instrumentation.java:957)
05-26 23:11:45.391: E/AndroidRuntime(624):  at android.app.Instrumentation.newApplication(Instrumentation.java:942)
05-26 23:11:45.391: E/AndroidRuntime(624):  at android.app.LoadedApk.makeApplication(LoadedApk.java:477)
05-26 23:11:45.391: E/AndroidRuntime(624):  at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3909)
05-26 23:11:45.391: E/AndroidRuntime(624):  at android.app.ActivityThread.access$1300(ActivityThread.java:122)
05-26 23:11:45.391: E/AndroidRuntime(624):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1184)
05-26 23:11:45.391: E/AndroidRuntime(624):  at android.os.Handler.dispatchMessage(Handler.java:99)
05-26 23:11:45.391: E/AndroidRuntime(624):  at android.os.Looper.loop(Looper.java:137)
05-26 23:11:45.391: E/AndroidRuntime(624):  at android.app.ActivityThread.main(ActivityThread.java:4340)
05-26 23:11:45.391: E/AndroidRuntime(624):  at java.lang.reflect.Method.invokeNative(Native Method)
05-26 23:11:45.391: E/AndroidRuntime(624):  at java.lang.reflect.Method.invoke(Method.java:511)
05-26 23:11:45.391: E/AndroidRuntime(624):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
05-26 23:11:45.391: E/AndroidRuntime(624):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
05-26 23:11:45.391: E/AndroidRuntime(624):  at dalvik.system.NativeStart.main(Native Method)

4 个答案:

答案 0 :(得分:15)

这是ADT v22的问题。这很难修复。这里有一些建议:The CommonsBlog - Don't Manually Modify Your Eclipse Build Path... Except Now for R22(感谢StreetsOfBoston和CommonswareGuy)

答案 1 :(得分:1)

因此,据我所知,Android使用不同的类文件格式,如果您运行的是第三方JAR / Java文件,则必须首先通过随附的dx工具运行它们。 Android SDK。

其他可能的原因可能是您正在使用的Android SDK级别不支持的java.lang类中的某些方法(例如,String.isEmpty())。

答案 2 :(得分:0)

如果答案是@G。无论出于何种原因,Blake Meike都不适合你,这是修复它的另一种方法。

  
      
  1. 右键单击项目>构建路径>配置构建路径
  2.   
  3. 点击左侧的Android
  4.   
  5. 在右边选择4.2.2以外的任何其他目标名称/ API,因为它似乎有问题。
  6.   
  7. 点击确定(此时使用所选API重建项目)
  8.   
  9. 运行应用程序
  10.   

希望有所帮助。

答案 3 :(得分:0)

我刚刚在#34;导入和导出"中启用了第三方库。配置构建路径的TAB。

enter image description here