您的位置:首页 > 其它

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

2015-06-30 19:31 531 查看
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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: