SystemUi在最近崩溃

时间:2017-05-25 18:37:42

标签: android

谁可以帮助我?我只进入横向应用程序 [code] java.lang.RuntimeException:无法启动活动ComponentInfo {com.android.systemui / com.android.systemui.recents.RecentsActivity}:java.lang.NullPointerException:尝试调用虚方法'void android.view.View空集对象引用上的.setVisibility(int)'     在android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2447)     在android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2511)     在android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:4121)     在android.app.ActivityThread.-wrap15(ActivityThread.java)     在android.app.ActivityThread $ H.handleMessage(ActivityThread.java:1366)     在android.os.Handler.dispatchMessage(Handler.java:102)     在android.os.Looper.loop(Looper.java:148)     在android.app.ActivityThread.main(ActivityThread.java:5480)     at java.lang.reflect.Method.invoke(Native Method)     在com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:726)     在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)

引起:java.lang.NullPointerException:尝试在空对象引用上调用虚方法'void android.view.View.setVisibility(int)'     在com.android.systemui.recents.RecentsActivity.updateBlurBackgroundImageView(RecentsActivity.java)     在com.android.systemui.recents.RecentsActivity.onStart(RecentsActivity.java:554)     在android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1237)     在android.app.Activity.performStart(Activity.java:6334)     在android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2410)     ......还有11个

[/代码] https://drive.google.com/file/d/0B_0Jcz_4I06tOXRkbGcwb2w4MUE/view?usp=drivesdk

1 个答案:

答案 0 :(得分:0)

我认为您的观点必须为空。

如果要调用未初始化的视图对象的setVisibility()方法,则会发生此错误。

请检查,您必须忘记使用findViewById()