did not call through to super.onCreate()

Posted 代码空间

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了did not call through to super.onCreate()相关的知识,希望对你有一定的参考价值。

android.util.SuperNotCalledException: Activity {com.xkyiliao.xkhospital/com.xkyiliao.xkhospital.activity.Act_HealthManagement} did not call through to super.onCreate()
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2412)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2518)
    at android.app.ActivityThread.access$800(ActivityThread.java:153)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1408)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:135)
    at android.app.ActivityThread.main(ActivityThread.java:5429)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:947)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:742)

经检查,原来是Activity的onCreate(Bundle savedInstanceState)里面没有写:

super.onCreate(savedInstanceState);

 

以上是关于did not call through to super.onCreate()的主要内容,如果未能解决你的问题,请参考以下文章

error: pathspec ‘v0.11.1‘ did not match any file(s) known to git.

error: pathspec ‘v0.11.1‘ did not match any file(s) known to git.

error: pathspec ‘v0.11.1‘ did not match any file(s) known to git.

error: pathspec ‘v0.11.1‘ did not match any file(s) known to git.

问题解决error: pathspec ‘XXX‘ did not match any file(s) known to git

Git使用之(pathspec master did not match any file(s) known to git)