有时当我重新启动我的应用程序进行测试时,我会被抛出致命的事情。不会一直发生,我正在通过我的设备测试而不是模拟器,就像我一直这样。我没有看到我的代码出错的行,所以不确定该怎么做?
03-24 16:26:24.692: E/AndroidRuntime(1407): FATAL EXCEPTION: main
03-24 16:26:24.692: E/AndroidRuntime(1407): Process: com.jameswilson.fairbook, PID: 1407
03-24 16:26:24.692: E/AndroidRuntime(1407): java.lang.RuntimeException: Unable to instantiate application com.jameswilson.fairbook.FairBookApplication: java.lang.IllegalStateException: Unable to get package info for com.jameswilson.fairbook; is package not installed?
03-24 16:26:24.692: E/AndroidRuntime(1407): at android.app.LoadedApk.makeApplication(LoadedApk.java:516)
03-24 16:26:24.692: E/AndroidRuntime(1407): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4317)
03-24 16:26:24.692: E/AndroidRuntime(1407): at android.app.ActivityThread.access$1500(ActivityThread.java:135)
03-24 16:26:24.692: E/AndroidRuntime(1407): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
03-24 16:26:24.692: E/AndroidRuntime(1407): at android.os.Handler.dispatchMessage(Handler.java:102)
03-24 16:26:24.692: E/AndroidRuntime(1407): at android.os.Looper.loop(Looper.java:136) 03-24 16:26:24.692: E/AndroidRuntime(1407): at android.app.ActivityThread.main(ActivityThread.java:5017)
03-24 16:26:24.692: E/AndroidRuntime(1407): at java.lang.reflect.Method.invokeNative(Native Method)
03-24 16:26:24.692: E/AndroidRuntime(1407): at java.lang.reflect.Method.invoke(Method.java:515)
03-24 16:26:24.692: E/AndroidRuntime(1407): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
03-24 16:26:24.692: E/AndroidRuntime(1407): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) 03-24 16:26:24.692: E/AndroidRuntime(1407): at dalvik.system.NativeStart.main(Native Method)
03-24 16:26:24.692: E/AndroidRuntime(1407): Caused by: java.lang.IllegalStateException: Unable to get package info for com.jameswilson.fairbook; is package not installed? 03-24 16:26:24.692: E/AndroidRuntime(1407): at android.app.LoadedApk.initializeJavaContextClassLoader(LoadedApk.java:376)
03-24 16:26:24.692: E/AndroidRuntime(1407): at android.app.LoadedApk.getClassLoader(LoadedApk.java:329)
03-24 16:26:24.692: E/AndroidRuntime(1407): at android.app.LoadedApk.makeApplication(LoadedApk.java:508)
03-24 16:26:24.692: E/AndroidRuntime(1407): ... 11 more