百度地图Android SDK So文件加载失败原因

根据官方文档配置环境(顺便提一下百度地图和定位有两个文档,配置方法不同,如果既需要地图也需要定位,我也不知道该用哪个配置。。),但返回经纬度都是4.9E-324 ,然后就变成0了。
BDLocationListener有个方法,是location.getLocTypeDescription(),返回定位异常的描述:

    NetWork location failed because baidu location service can not decrypt the request query, please check the so file !

显然是so文件加载问题,也就是环境配置出错了。我试了下两套文档的配置,都没用。最后我下了官方demo,按照demo上的配置就没问题。

建议百度尽快修改文档,浪费开发者时间啊

猜你喜欢

转载自blog.csdn.net/xiang_freedom/article/details/75504876