现象:运行mapView.requestLocation(),返回值为1即“服务没有启动”。
解决方案:看一下主配置文件中服务是否配置了,具体如下:
<service android:name="com.baidu.location.f" android:enabled="true" android:process=":remote" > </service>
上面这段代码不用修改,直接复制粘贴就行了。