2017-05-25 57 views
-1

谁可以帮我吗?我只在卧式应用 [code] java.lang.RuntimeException:无法启动活动ComponentInfo {com.android.systemui/com.android.systemui.recents.RecentsActivity} :java.lang.NullPointerException:尝试在android上的android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2447) 上的null对象引用 上调用虚拟方法'void android.view.View.setVisibility(int)'。 android.app.ActivityThread.-wrap15(ActivityThread.java) at android.app.ActivityThread() $ H.handleMessage(ActivityThread.java:1366) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:148) at android.app.ActivityThread.main(ActivityThread.java:5480) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:726) at com.android.internal.os.ZygoteInit.main(ZygoteInit .java:616)SystemUi崩溃在recents

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

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

+0

发表您的源代码 – sasikumar

+0

https://drive.google.com/file/d/0B_0Jcz_4I06tOXRkbGcwb2w4MUE/view?usp=drivesdk – 3jlou

回答

0

,我认为你的观点必须为空。

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

请检查,您必须被忽略使用findViewById()

+0

https://drive.google.com/file/d/0B_0Jcz_4I06tOXRkbGcwb2w4MUE/view?usp= drivesdk – 3jlou