您好,我收到错误消息java.lang.verifyerror
。每当我从 android studio 运行项目时。当我在 Android 版本 4.1 或 4.2 中运行 android 应用程序并且当我在 Nexus 5 上运行此应用程序时它运行良好时会发生这种情况。那么实际问题是什么?
这是我在错误期间得到的错误日志。
09-03 12:49:52.853 21977-21977/com.still.nyapp E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.VerifyError: com/still/nyapp/cometchat/DaoMaster
at com.still.nyapp.cometchat.DaoMaster$OpenHelper.onCreate(DaoMaster.java:42)
at android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:252)
at android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:164)
at com.still.nyapp.application.ApplicationContext.setupDatabase(ApplicationContext.java:67)
at com.still.nyapp.application.ApplicationContext.onCreate(ApplicationContext.java:36)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1017)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4556)
at android.app.ActivityThread.access$1400(ActivityThread.java:150)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1340)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5283)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1102)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:869)
at dalvik.system.NativeStart.main(Native Method)
在此之前,我在日志中收到消息
09-04 11:49:44.317 1048-1048/? I/dalvikvm﹕ Could not find method
com.still.nyapp.cometchat.ChatHistoryDao.createTable, referenced from
method com.still.nyapp.cometchat.DaoMaster.createAllTables
09-04 11:49:44.317 1048-1048/? W/dalvikvm﹕ VFY: unable to resolve static
method 32860: Lcom/still/nyapp/cometchat/ChatHistoryDao;.createTable
(Landroid/database/sqlite/SQLiteDatabase;Z)V