收到了 Play 商店崩溃报告(万岁)。堆栈跟踪列出了发生在MyActivity#d()
、 内部的NPE MyAtivity#onCreate()
。这是编译器生成的方法吗?我肯定没写!
Caused by: java.lang.NullPointerException
at com.example.MyActivity.d(Unknown Source)
at com.example.MyActivity.onCreate(Unknown Source)
at android.app.Activity.performCreate(Activity.java:5008)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
提前致谢!