裝載:https://blog.csdn.net/u011057161/article/details/50474677
解決“has leaked ServiceConnection [email protected] that was originally bound here”的錯誤,需要修改AndroidManifest.xml檔案。
配置Map定位許可權和遠端連結機制。不然,就會報下面的錯誤:
[plain] view plain copy- has leaked ServiceConnection
- android.app.ServiceConnectionLeaked: Activity XX.XX.XX.XXXXActivity has leaked ServiceConnection [email protected] that was originally bound here
- at android.app.LoadedApk$ServiceDispatcher.<init>(LoadedApk.java:969)
方法:
新增定位許可權:
[html] view plain copy- <
再<application></application>之間新增下面service標籤。 [html] view plain copy
- <service
- android:name="com.baidu.location.f"
- android:enabled="true"
- android:process=":remote" >
- </service>