首页 > 其他分享 >在使用百度地图的SDK时,出现.LocationDemo has leaked ServiceConnection 异常并且无法定位的时候

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

时间:2022-11-24 17:05:03浏览次数:43  
标签:baidu leaked LocationDemo ServiceConnection location android com


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>



标签:baidu,leaked,LocationDemo,ServiceConnection,location,android,com
From: https://blog.51cto.com/u_15890522/5884208

相关文章