Android :: Version4.4及以下版本应用程序崩溃与VerifyError

时间:2017-07-14 02:55:15

标签: android eclipse crash verifyerror

我在android中遇到一个问题。之前我开发了一个app以及android 4.4和jdk6。现在我要使用jdk 7升级android 6中的相同应用程序以进行指纹验证。现在问题发生在Android 4.4及以下版本的应用程序崩溃。它抛出verifyError。任何人都可以帮我解决这个问题。 IDE:eclipse。 注意:我无法迁移android studio

`07-14 08:12:43.775: D/ActivityThread(18716): 
 handleBindApplication:sg.com.MyApp2u.MyApp
 07-14 08:12:43.775: D/ActivityThread(18716): 
 setTargetHeapUtilization:0.75
 07-14 08:12:43.775: D/ActivityThread(18716): 
 setTargetHeapMinFree:2097152
 07-14 08:12:44.035: W/dalvikvm(18716): VFY: unable to resolve 
 exception class 261 
 (Landroid/security/keystore/KeyPermanentlyInvalidatedException;)
 07-14 08:12:44.035: W/dalvikvm(18716): VFY: unable to find exception 
 handler at addr 0x2a
 07-14 08:12:44.035: W/dalvikvm(18716): VFY:  rejected 
 Lsg/com/MyApp2u/MyApp/AppController;.cipherInit ()Z
 07-14 08:12:44.035: W/dalvikvm(18716): VFY:  rejecting opcode 0x0d 
 at 0x002a
 07-14 08:12:44.035: W/dalvikvm(18716): VFY:  rejected 
 Lsg/com/MyApp2u/MyApp/AppController;.cipherInit ()Z
 07-14 08:12:44.035: W/dalvikvm(18716): Verifier rejected class 
 Lsg/com/MyApp2u/MyApp/AppController;
 07-14 08:12:44.035: D/AndroidRuntime(18716): Shutting down VM
 07-14 08:12:44.035: W/dalvikvm(18716): threadid=1: thread exiting 
 with uncaught exception (group=0x41d16d58)
 07-14 08:12:44.035: E/AndroidRuntime(18716): FATAL EXCEPTION: main
 07-14 08:12:44.035: E/AndroidRuntime(18716): Process: 
 sg.com.MyApp2u.MyApp, PID: 18716
 07-14 08:12:44.035: E/AndroidRuntime(18716): java.lang.VerifyError: 
 sg/com/MyApp2u/MyApp/AppController
 07-14 08:12:44.035: E/AndroidRuntime(18716):   at 
 sg.com.MyApp2u.MyApp.mobeix.onCreate(mobeix.java:170)
 07-14 08:12:44.035: E/AndroidRuntime(18716):   at 
 android.app.Activity.performCreate(Activity.java:5242)
 07-14 08:12:44.035: E/AndroidRuntime(18716):   at 
 android.app.Instrumentation.
 callActivityOnCreate(Instrumentation.java:1087)
 07-14 08:12:44.035: E/AndroidRuntime(18716):   at
 android.app.ActivityThread. 
 performLaunchActivity(ActivityThread.java:2164)
 07-14 08:12:44.035: E/AndroidRuntime(18716):   at 
 android.app.ActivityThread. 
 handleLaunchActivity(ActivityThread.java:2249)
 07-14 08:12:44.035: E/AndroidRuntime(18716):   at 
 android.app.ActivityThread.access$800(ActivityThread.java:141)
 07-14 08:12:44.035: E/AndroidRuntime(18716):   at 
 android.app.ActivityThread$H.handleMessage(ActivityThread.java:1212)
 07-14 08:12:44.035: E/AndroidRuntime(18716):   at 
 android.os.Handler.dispatchMessage(Handler.java:102)
 07-14 08:12:44.035: E/AndroidRuntime(18716):   at 
 android.os.Looper.loop(Looper.java:136)
 07-14 08:12:44.035: E/AndroidRuntime(18716):   at 
 android.app.ActivityThread.main(ActivityThread.java:5113)
 07-14 08:12:44.035: E/AndroidRuntime(18716):   at 
 java.lang.reflect.Method.invokeNative(Native Method)
 07-14 08:12:44.035: E/AndroidRuntime(18716):   at 
 java.lang.reflect.Method.invoke(Method.java:515)
 07-14 08:12:44.035: E/AndroidRuntime(18716):   at 
 com.android.internal.os.
 ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)
 07-14 08:12:44.035: E/AndroidRuntime(18716):   at 
 com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
 07-14 08:12:44.035: E/AndroidRuntime(18716):   at 
 dalvik.system.NativeStart.main(Native Method)`

1 个答案:

答案 0 :(得分:0)

您是否尝试过使用Multidex?如果我不使用Multidex

,我在Android 4.4中的应用程序出现了一些错误或崩溃