android.inputmethodservice.IInputMethodWrapper.setSessionEnabled崩溃(IInputMethodWrapper.java:280)

时间:2016-08-16 08:56:28

标签: android error-handling runtimeexception android-input-method

我的应用在Android 4设备上崩溃了。当我在viewPager中滚动recyclerView时会发生这种情况 为什么会出现这个错误?

 0805/? W/Binder: Caught a RuntimeException from the binder stub implementation.
                                             java.lang.NullPointerException
                                                 at android.inputmethodservice.IInputMethodWrapper.setSessionEnabled(IInputMethodWrapper.java:280)
                                                 at com.android.internal.view.IInputMethod$Stub.onTransact(IInputMethod.java:129)
                                                 at android.os.Binder.execTransact(Binder.java:404)
                                                 at dalvik.system.NativeStart.run(Native Method)
    08-16 10:58:44.238 926-10805/? W/System.err: java.lang.NullPointerException
    08-16 10:58:44.244 926-10805/? W/System.err:     at android.inputmethodservice.IInputMethodWrapper.setSessionEnabled(IInputMethodWrapper.java:280)
    08-16 10:58:44.245 926-10805/? W/System.err:     at com.android.internal.view.IInputMethod$Stub.onTransact(IInputMethod.java:129)
    08-16 10:58:44.245 926-10805/? W/System.err:     at android.os.Binder.execTransact(Binder.java:404)
    08-16 10:58:44.245 926-10805/? W/System.err:     at dalvik.system.NativeStart.run(Native Method)

1 个答案:

答案 0 :(得分:0)

也许U实现模块 gradle中的某些库较低。就像

implementation 'com.android.support:leanback-v17:25.3.1'

尝试更改

implementation 'com.android.support:leanback-v17:26.1.0'