使用百度地图的地理编码功能时报错

使用百度地图的地理编码功能时出现以下错误:
06-30 13:49:17.105: E/HAL(19506): load: id=gralloc != hmi->id=gralloc
06-30 13:49:17.215: W/DeviceId(19506): galaxy lib host missing meta-data,make sure you know the right way to integrate galaxy
06-30 13:49:17.215: W/DeviceId(19506): galaxy lib host missing meta-data,make sure you know the right way to integrate galaxy
06-30 13:49:17.215: W/DeviceId(19506): galaxy lib host missing meta-data,make sure you know the right way to integrate galaxy
网上查找也没有人解决,最终的问题出现在这里:
gSearch.geocode(new GeoCodeOption().city(null).address(search));
把这里的“null”换成“”这个就行了。。

猜你喜欢

转载自blog.csdn.net/a_yue10/article/details/51789841