程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 更多編程語言 >> 編程綜合問答 >> eclipse-Unfortunately,Xxx has stoppe 這是我的logcat

eclipse-Unfortunately,Xxx has stoppe 這是我的logcat

編輯:編程綜合問答
Unfortunately,Xxx has stoppe 這是我的logcat

07-15 02:03:35.355: I/Process(1664): Sending signal. PID: 1664 SIG: 9
07-15 02:03:36.955: D/AndroidRuntime(1703): Shutting down VM
07-15 02:03:36.955: W/dalvikvm(1703): threadid=1: thread exiting with uncaught exception (group=0xb1a8fba8)
07-15 02:03:36.995: E/AndroidRuntime(1703): FATAL EXCEPTION: main
07-15 02:03:36.995: E/AndroidRuntime(1703): Process: com.example.android_notification, PID: 1703
07-15 02:03:36.995: E/AndroidRuntime(1703): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.android_notification/com.example.android_notification.MainActivity}: java.lang.NullPointerException
07-15 02:03:36.995: E/AndroidRuntime(1703): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)
07-15 02:03:36.995: E/AndroidRuntime(1703): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
07-15 02:03:36.995: E/AndroidRuntime(1703): at android.app.ActivityThread.access$800(ActivityThread.java:135)
07-15 02:03:36.995: E/AndroidRuntime(1703): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
07-15 02:03:36.995: E/AndroidRuntime(1703): at android.os.Handler.dispatchMessage(Handler.java:102)
07-15 02:03:36.995: E/AndroidRuntime(1703): at android.os.Looper.loop(Looper.java:136)
07-15 02:03:36.995: E/AndroidRuntime(1703): at android.app.ActivityThread.main(ActivityThread.java:5017)
07-15 02:03:36.995: E/AndroidRuntime(1703): at java.lang.reflect.Method.invokeNative(Native Method)
07-15 02:03:36.995: E/AndroidRuntime(1703): at java.lang.reflect.Method.invoke(Method.java:515)
07-15 02:03:36.995: E/AndroidRuntime(1703): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
07-15 02:03:36.995: E/AndroidRuntime(1703): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
07-15 02:03:36.995: E/AndroidRuntime(1703): at dalvik.system.NativeStart.main(Native Method)
07-15 02:03:36.995: E/AndroidRuntime(1703): Caused by: java.lang.NullPointerException
07-15 02:03:36.995: E/AndroidRuntime(1703): at com.example.android_notification.MainActivity.onCreate(MainActivity.java:29)
07-15 02:03:36.995: E/AndroidRuntime(1703): at android.app.Activity.performCreate(Activity.java:5231)
07-15 02:03:36.995: E/AndroidRuntime(1703): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
07-15 02:03:36.995: E/AndroidRuntime(1703): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
07-15 02:03:36.995: E/AndroidRuntime(1703): ... 11 more
07-15 02:03:40.435: I/Process(1703): Sending signal. PID: 1703 SIG: 9

最佳回答:


ComponentInfo{com.example.android_notification/com.example.android_notification.MainActivity}: java.lang.NullPointerException
mainActivity中報空指針了。跟蹤一下onCreate中的代碼,看什麼報空指針了。
danielinbiti
sinat_29774479
sinat_29774479
  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved