android.app.ServiceConnectionLeaked: that was originally bound here

Write_BUG小能手 初级 2020-09-25 04:31:51
日志:
android.app.ServiceConnectionLeaked: Activity com.qikeya.jyxt.ui.home_mine.live_push.Activity_Pusher has leaked ServiceConnection org.eclipse.paho.android.service.MqttAndroidClient$MyServiceConnection@6336389 that was originally bound here

我在调用一个第三方jar 包的时候,它的一个私有方法内调用了
Context.bindService(serviceStartIntent,serviceConnection,Context.BIND_AUTO_CREATE);

MyServiceConnection 也是私有的, 我在界面销毁的时候 就爆了上面的错误。。。。, 这么在我的界面内去注销的这个bindService 呢?

...全文
10568 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
立青_ 中级 2020-09-27
  • 打赏
  • 举报
回复
第三方库应该自己解决或者提供了对应方法,你看看有没有啥方法,一般不都是绑定生命周期吗,onDestroy啥的

80,348

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧