<span id="Label3"></p><p><p></p></p><p><p>Private latlng Gpstobaidu (double lat, double Lng) {<br></p></p><p><p>LATLNG sourcelatlng = new LATLNG (lat, lng);<br></p></p><p><p>Coordinateconverter converter = new Coordinateconverter ();<br></p></p><p><p>Converter.from (coordtype.gps);<br></p></p><p><p>SOURCELATLNG to convert coordinates<br></p></p><p><p>Converter.coord (sourcelatlng);<br></p></p><p><p>LATLNG deslatlng = Converter.convert ();<br></p></p><p><p>Return deslatlng;<br></p></p><p><p>}</p></p><p><p><br></p></p><p><p>Log error: Java.lang.UnsatisfiedLinkError:CoordinateEncryptEx</p></p><p><p>-----------------------------------------------------------------------------------</p></p><p><p><br></p></p><p><p><span style="color:rgb(255,0,0);">Workaround: Initialize the SDK in application</span></p></p><p><p>public class DemoApplication extends application {</p></p><p><p><br></p></p><p><p><span class="Apple-tab-span" style="white-space:pre;"></span>@Override</p></p><p><p><span class="Apple-tab-span" style="white-space:pre;"></span>public void OnCreate () {</p></p><p><p><span class="Apple-tab-span" style="white-space:pre;"></span>Super.oncreate ();</p></p><p><p><span class="Apple-tab-span" style="white-space:pre;"></span>Initializes the context information before using the SDK groups, passing in the ApplicationContext</p></p><p><p><span class="Apple-tab-span" style="white-space:pre;"></span><span style="color:rgb(255,0,0);">Sdkinitializer.initialize (this);</span></p></p><p><p><span class="Apple-tab-span" style="white-space:pre;"></span>}</p></p><p><p><br></p></p><p><p>}</p></p><p><p><br></p></p><p><p>This article from "rookie of the mind course" blog, reproduced please contact the author!</p></p><p><p>Android Baidu Map GPS turn Baidu map coordinates java.lang.UnsatisfiedLinkError:CoordinateEncryptEx</p></p></span>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service