0
点赞
收藏
分享

微信扫一扫

在使用百度地图的SDK时,出现.LocationDemo has leaked ServiceConnection 异常并且无法定位的时候


Activity com.example.diarysytsem.LocationDemo has leaked ServiceConnection com.baidu.location.c@4247e170 that was originally bound here

这个是因为在配置文件中没有加入服务的原因,解决方法就是为这个application注册服务

<service
android:name="com.baidu.location.f"
android:enabled="true"
android:process=":remote" >
</service>



举报

相关推荐

0 条评论