============问题描述============
想把手机采集的GPS坐标转化为百度坐标,在网上找了一下代码:
GeoPoint geoPoint3 = new GeoPoint((int) ((mLat1 + 0.001) * 1E6), (int) ((mLon1 + 0.003) * 1E6)); GeoPoint GeoPointBaidu = CoordinateConvert.fromWgs84ToBaidu(geoPoint3); mOverlayList.add(new OverlayItem(GeoPointBaidu, "point", "point"));
一运行就崩溃,提示错误:10-08 20:37:51.828: I/dalvikvm(18750): Could not find method com.baidu.mapapi.utils.CoordinateConvert.fromWgs84ToBaidu, referenced from method com.map.maptest.MainActivity$MyOverlayItem.<init>
不知道为啥,求解,先谢谢了。
============解决方案1============
打包的时候有 Jar包没有成功打包?
时间: 2024-11-25 14:37:37