Android应用程序已经工作了几周,现在它每次都无法启动

时间:2014-11-20 11:58:28

标签: android

我已经在我的Android应用程序上工作了几个星期,突然间它就不会启动了。我在移动设备上和模拟器上都遇到了同样的错误。我继续在我的应用程序中备份旧版本,尽管将这些版本重新加载到eclipse中,我仍然会遇到相同的错误。我真的不明白和恐慌。有人可以建议吗?

我的堆栈跟踪:

11-20 11:46:29.821: E/AndroidRuntime(6573): FATAL EXCEPTION: main
11-20 11:46:29.821: E/AndroidRuntime(6573): Process: com.example.lifesci_pubmed, PID: 6573
11-20 11:46:29.821: E/AndroidRuntime(6573): java.lang.RuntimeException: Unable to start activity    ComponentInfo{com.example.lifesci_pubmed/com.android.lifesci_pubmed.ArticleListFragment_developActivity}: java.lang.NullPointerException
11-20 11:46:29.821: E/AndroidRuntime(6573):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2198)
11-20 11:46:29.821: E/AndroidRuntime(6573):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2257)
11-20 11:46:29.821: E/AndroidRuntime(6573):     at android.app.ActivityThread.access$800(ActivityThread.java:139)
11-20 11:46:29.821: E/AndroidRuntime(6573):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1210)
11-20 11:46:29.821: E/AndroidRuntime(6573):     at android.os.Handler.dispatchMessage(Handler.java:102)
11-20 11:46:29.821: E/AndroidRuntime(6573):     at android.os.Looper.loop(Looper.java:136)
11-20 11:46:29.821: E/AndroidRuntime(6573):     at android.app.ActivityThread.main(ActivityThread.java:5086)
11-20 11:46:29.821: E/AndroidRuntime(6573):     at java.lang.reflect.Method.invokeNative(Native Method)
11-20 11:46:29.821: E/AndroidRuntime(6573):     at java.lang.reflect.Method.invoke(Method.java:515)
11-20 11:46:29.821: E/AndroidRuntime(6573):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
11-20 11:46:29.821: E/AndroidRuntime(6573):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
11-20 11:46:29.821: E/AndroidRuntime(6573):     at dalvik.system.NativeStart.main(Native Method)
11-20 11:46:29.821: E/AndroidRuntime(6573): Caused by: java.lang.NullPointerException
11-20 11:46:29.821: E/AndroidRuntime(6573):     at com.android.lifesci_pubmed.ArticleListFragment_develop.recallToReadList(ArticleListFragment_develop.java:685)
11-20 11:46:29.821: E/AndroidRuntime(6573):     at com.android.lifesci_pubmed.ArticleListFragment_develop.onCreate(ArticleListFragment_develop.java:91)
11-20 11:46:29.821: E/AndroidRuntime(6573):     at android.support.v4.app.Fragment.performCreate(Fragment.java:1481)
11-20 11:46:29.821: E/AndroidRuntime(6573):     at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:908)
11-20 11:46:29.821: E/AndroidRuntime(6573):     at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1121)
11-20 11:46:29.821: E/AndroidRuntime(6573):     at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:682)
11-20 11:46:29.821: E/AndroidRuntime(6573):     at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1484)
11-20 11:46:29.821: E/AndroidRuntime(6573):     at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:571)
11-20 11:46:29.821: E/AndroidRuntime(6573):     at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1194)
11-20 11:46:29.821: E/AndroidRuntime(6573):     at android.app.Activity.performStart(Activity.java:5258)
11-20 11:46:29.821: E/AndroidRuntime(6573):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2171)
11-20 11:46:29.821: E/AndroidRuntime(6573):     ... 11 more
11-20 11:51:29.848: I/Process(6573): Sending signal. PID: 6573 SIG: 9

1 个答案:

答案 0 :(得分:0)

您是否在清单中声明了活动?