我遇到了惊人的麻烦......
似乎在我的一个类(android应用程序,java,Eclipse)中添加一个新变量时,AVD在打开相应的活动时崩溃。
如果我决定删除另一个变量,无论它是什么,它都可以正常工作。如果变量是int或double似乎并不重要。
所以看起来好像有最大数量的变量? (我知道它看起来很奇怪但是......)
在另一台计算机上使用相同的项目可以正常工作(使用Eclipse,但是不同版本)。
有没有人有解释的开头? 我很感激任何帮助...
谢谢!
05-12 12:15:49.107: W/dalvikvm(674): Invalid reg type for array index (1174247616)
05-12 12:15:49.107: W/dalvikvm(674): VFY: rejected Lcom/example/preference/Scoresdetail;.onCreate (Landroid/os/Bundle;)V
05-12 12:15:49.136: W/dalvikvm(674): VFY: rejecting opcode 0x46 at 0x14ec
05-12 12:15:49.136: W/dalvikvm(674): VFY: rejected Lcom/example/preference/Scoresdetail;.onCreate (Landroid/os/Bundle;)V
05-12 12:15:49.146: W/dalvikvm(674): Verifier rejected class Lcom/example/preference/Scoresdetail;
05-12 12:15:49.146: W/dalvikvm(674): Class init failed in newInstance call (Lcom/example/preference/Scoresdetail;)
05-12 12:15:49.146: D/AndroidRuntime(674): Shutting down VM
05-12 12:15:49.146: W/dalvikvm(674): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
05-12 12:15:49.196: E/AndroidRuntime(674): FATAL EXCEPTION: main
05-12 12:15:49.196: E/AndroidRuntime(674): java.lang.VerifyError: com.example.preference.Scoresdetail
05-12 12:15:49.196: E/AndroidRuntime(674): at java.lang.Class.newInstanceImpl(Native Method)
05-12 12:15:49.196: E/AndroidRuntime(674): at java.lang.Class.newInstance(Class.java:1429)
05-12 12:15:49.196: E/AndroidRuntime(674): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
05-12 12:15:49.196: E/AndroidRuntime(674): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2577)
05-12 12:15:49.196: E/AndroidRuntime(674): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
05-12 12:15:49.196: E/AndroidRuntime(674): at android.app.ActivityThread.access$2300(ActivityThread.java:125)
05-12 12:15:49.196: E/AndroidRuntime(674): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
05-12 12:15:49.196: E/AndroidRuntime(674): at android.os.Handler.dispatchMessage(Handler.java:99)
05-12 12:15:49.196: E/AndroidRuntime(674): at android.os.Looper.loop(Looper.java:123)
05-12 12:15:49.196: E/AndroidRuntime(674): at android.app.ActivityThread.main(ActivityThread.java:4627)
05-12 12:15:49.196: E/AndroidRuntime(674): at java.lang.reflect.Method.invokeNative(Native Method)
05-12 12:15:49.196: E/AndroidRuntime(674): at java.lang.reflect.Method.invoke(Method.java:521)
05-12 12:15:49.196: E/AndroidRuntime(674): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
05-12 12:15:49.196: E/AndroidRuntime(674): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
05-12 12:15:49.196: E/AndroidRuntime(674): at dalvik.system.NativeStart.main(Native Method)
05-12 12:15:50.996: D/dalvikvm(674): GC_FOR_MALLOC freed 5697 objects / 318752 bytes in 1227ms
05-12 12:15:52.056: I/Process(674): Sending signal. PID: 674 SIG: 9
只是为了记录,当应用程序崩溃我得到:
The application (package name) has stop unexpectedly. Please try again...