=============== Problem description ====================
To convert the GPS coordinates collected by mobile phones to Baidu coordinates, I found the code on the Internet:
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"));
A crash occurs as soon as it is run, and an error is displayed: 10-08 20:37:51. 828: I/dalvikvm (18750): cocould not find method com. baidu. mapapi. utils. coordinateconvert. fromwgs84tobaidu, referenced from method com. map. maptest. mainactivity $ myoverlayitem. <init>
I don't know why. Thank you for solving the problem.
============= Solution 1 ======================
Is a jar package not successfully packaged?
Convert GPS coordinates to Baidu coordinates