Android studio没有显示任何错误,但我的logcat显示有错误

时间:2015-03-23 15:38:04

标签: forceclose

这是我的logcat -

03-23 21:02:12.573 22442-22442 / the.falacermusicE / AndroidRuntime:FATAL EXCEPTION:main     android.app.SuperNotCalledException:Activity {.falacermusic / the.falacermusic.ui.activities.HomeActivity}没有调用super.onStart()             在android.app.Activity.performStart(Activity.java:5196)             在android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2087)             在android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2139)             在android.app.ActivityThread.access $ 700(ActivityThread.java:143)             在android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1241)             在android.os.Handler.dispatchMessage(Handler.java:99)             在android.os.Looper.loop(Looper.java:137)             在android.app.ActivityThread.main(ActivityThread.java:4963)             at java.lang.reflect.Method.invokeNative(Native Method)             在java.lang.reflect.Method.invoke(Method.java:511)             在com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:1038)             在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)             在dalvik.system.NativeStart.main(本地方法)

1 个答案:

答案 0 :(得分:0)

  

03-23 21:02:12.573 22442-22442 / the.falacermusicE / AndroidRuntime:FATAL EXCEPTION:main android.app.SuperNotCalledException:Activity {the.falacermusic / the.falacermusic.ui.activities.HomeActivity}没有调用通过super.onStart()

由于错误声明您正在onStart中实施HomeActivity方法,但您不会使用super.onStart()方法。