Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

7.1.2设备启动崩溃 #455

Open
ling976 opened this issue Apr 1, 2020 · 1 comment
Open

7.1.2设备启动崩溃 #455

ling976 opened this issue Apr 1, 2020 · 1 comment

Comments

@ling976
Copy link

ling976 commented Apr 1, 2020

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.banyan.platform/com.banyan.MainActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.view.IWindowManager.hasNavigationBar()' on a null object reference
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2743)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2808)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1544)
at android.os.Handler.dispatchMessage(Handler.java:110)
at android.os.Looper.loop(Looper.java:203)
at android.app.ActivityThread.main(ActivityThread.java:6297)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1084)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:945)
Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.view.IWindowManager.hasNavigationBar()' on a null object reference
at android.view.ViewConfiguration.(ViewConfiguration.java:320)
at android.view.ViewConfiguration.get(ViewConfiguration.java:369)
at android.view.View.(View.java:4064)
at android.view.View.(View.java:4198)
at android.view.ViewGroup.(ViewGroup.java:604)
at android.view.ViewGroup.(ViewGroup.java:600)
at android.view.ViewGroup.(ViewGroup.java:596)
at android.view.ViewGroup.(ViewGroup.java:592)
at android.widget.FrameLayout.(FrameLayout.java:95)
at com.android.internal.policy.DecorView.(DecorView.java:247)
at com.android.internal.policy.PhoneWindow.generateDecor(PhoneWindow.java:2311)
at com.android.internal.policy.PhoneWindow.installDecor(PhoneWindow.java:2654)
at com.android.internal.policy.PhoneWindow.getDecorView(PhoneWindow.java:2077)
at android.app.ActivityTransitionState.setEnterActivityOptions(ActivityTransitionState.java:158)
at android.app.Activity.performCreateCommon(Activity.java:6676)
at android.app.Activity.performCreate(Activity.java:6683)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
at com.morgoo.droidplugin.hook.handle.PluginInstrumentation.callActivityOnCreate(PluginInstrumentation.java:110)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2696)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2808)?
at android.app.ActivityThread.-wrap12(ActivityThread.java)?
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1544)?
at android.os.Handler.dispatchMessage(Handler.java:110)?
at android.os.Looper.loop(Looper.java:203)?
at android.app.ActivityThread.main(ActivityThread.java:6297)?
at java.lang.reflect.Method.invoke(Native Method)?
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1084)?
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:945)?

@xiaoming6672
Copy link

和你一样的问题,7以上的启动,有涉及到setContentView的地方,全是报这个崩溃错误

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants