您好我收到错误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