首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >Android 连接低功耗蓝牙出现 Caught a RuntimeException from the binder stub implementation.

Android 连接低功耗蓝牙出现 Caught a RuntimeException from the binder stub implementation.

作者头像
晨曦_LLW
发布2022-06-09 17:53:16
发布2022-06-09 17:53:16
1.7K0
举报

Caught a RuntimeException from the binder stub implementation.

正文

  最近在做低功耗蓝牙开发的时候突然遇到这样一个问题,出现这个情况的时候是我的一个App在Android12、和鸿蒙系统的手机上都正常的情况下,我用Android10去进行测试,然后出现这个问题,问题异常日志描述如下。

代码语言:javascript
复制
W/Binder: Caught a RuntimeException from the binder stub implementation.
    java.lang.NullPointerException: Attempt to invoke virtual method 'boolean java.lang.String.equals(java.lang.Object)' on a null object reference
        at android.os.Parcel.createException(Parcel.java:2088)
        at android.os.Parcel.readException(Parcel.java:2050)
        at android.os.Parcel.readException(Parcel.java:1998)
        at android.bluetooth.IBluetoothGatt$Stub$Proxy.clientConnect(IBluetoothGatt.java:2006)
        at android.bluetooth.BluetoothGatt$1.onClientRegistered(BluetoothGatt.java:199)
        at android.bluetooth.IBluetoothGattCallback$Stub.onTransact(IBluetoothGattCallback.java:178)
        at android.os.Binder.execTransactInternal(Binder.java:1028)
        at android.os.Binder.execTransact(Binder.java:1001)

此时手机连接蓝牙,处于连接中,一直在连接中,新鲜出炉的Bug,得好好记录一下,并且说明一下解决过程。

我尝试过的方法:

  1. 重新安装应用,解决不了。
  2. 关闭开发者模式重新打开,解决不了。
  3. 关闭蓝牙重新打开,解决不了。
  4. 手机关机重启,解决了。

重启大法好,你值得拥有!

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2022/06/08 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Caught a RuntimeException from the binder stub implementation.
  • 正文
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档