5

我有一个基于位置的应用程序,它直到昨天都运行良好,但是当我在手机上运行它时,它的行为很奇怪。

下面是我的 logcat,它显示了我以前从未见过或听过的错误

07-07 14:17:25.548: D/ActivityThread(24383): handleBindApplication:com.example.loc_update
07-07 14:17:25.553: D/ActivityThread(24383): setTargetHeapUtilization:0.75
07-07 14:17:25.553: D/ActivityThread(24383): setTargetHeapMinFree:524288
07-07 14:17:25.573: I/dalvikvm(24383): DexOpt: illegal method access (call Landroid/content/res/TypedArray;.<init> (Landroid/content/res/Resources;[I[II)V from Landroid/content/res/XResources$XTypedArray;)
07-07 14:17:25.573: I/dalvikvm(24383): Could not find method android.content.res.TypedArray.<init>, referenced from method android.content.res.XResources$XTypedArray.<init>
07-07 14:17:25.573: W/dalvikvm(24383): VFY: unable to resolve direct method 82: Landroid/content/res/TypedArray;.<init> (Landroid/content/res/Resources;[I[II)V
07-07 14:17:25.573: D/dalvikvm(24383): VFY: replacing opcode 0x70 at 0x0002
07-07 14:17:25.683: W/dalvikvm(24383): threadid=1: thread exiting with uncaught exception (group=0x4162bce0)
07-07 14:17:25.688: E/AndroidRuntime(24383): FATAL EXCEPTION: main
07-07 14:17:25.688: E/AndroidRuntime(24383): Process: com.example.loc_update, PID: 24383
07-07 14:17:25.688: E/AndroidRuntime(24383): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.loc_update/com.example.loc_update.MainActivity}: java.lang.NullPointerException
07-07 14:17:25.688: E/AndroidRuntime(24383):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2228)
07-07 14:17:25.688: E/AndroidRuntime(24383):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2277)
07-07 14:17:25.688: E/AndroidRuntime(24383):    at android.app.ActivityThread.access$800(ActivityThread.java:144)
07-07 14:17:25.688: E/AndroidRuntime(24383):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1205)
07-07 14:17:25.688: E/AndroidRuntime(24383):    at android.os.Handler.dispatchMessage(Handler.java:102)
07-07 14:17:25.688: E/AndroidRuntime(24383):    at android.os.Looper.loop(Looper.java:136)
07-07 14:17:25.688: E/AndroidRuntime(24383):    at android.app.ActivityThread.main(ActivityThread.java:5152)
07-07 14:17:25.688: E/AndroidRuntime(24383):    at java.lang.reflect.Method.invokeNative(Native Method)
07-07 14:17:25.688: E/AndroidRuntime(24383):    at java.lang.reflect.Method.invoke(Method.java:515)
07-07 14:17:25.688: E/AndroidRuntime(24383):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:795)
07-07 14:17:25.688: E/AndroidRuntime(24383):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:611)
07-07 14:17:25.688: E/AndroidRuntime(24383):    at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
07-07 14:17:25.688: E/AndroidRuntime(24383):    at dalvik.system.NativeStart.main(Native Method)
07-07 14:17:25.688: E/AndroidRuntime(24383): Caused by: java.lang.NullPointerException
07-07 14:17:25.688: E/AndroidRuntime(24383):    at com.example.loc_update.MainActivity.onCreate(MainActivity.java:107)
07-07 14:17:25.688: E/AndroidRuntime(24383):    at android.app.Activity.performCreate(Activity.java:6020)
07-07 14:17:25.688: E/AndroidRuntime(24383):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
07-07 14:17:25.688: E/AndroidRuntime(24383):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2182)
07-07 14:17:25.688: E/AndroidRuntime(24383):    ... 12 more

注意:我昨天安装了 android 4.4.4 自定义 rom。是不是因为这个原因?

4

0 回答 0