计算百度地图两个经纬度的距离一直崩溃,一直在报这个错误,一直在报找不到jni库函数的错误
java.lang.UnsatisfiedLinkError: No implementation found for boolean com.baidu.platform.comjni.tools.JNITools.CoordinateEncryptEx(float, float, java.lang.String, java.lang.Object) (tried Java_com_baidu_platform_comjni_tools_JNITools_CoordinateEncryptEx and Java_com_baidu_platform_comjni_tools_JNITools_CoordinateEncryptEx__FFLjava_lang_String_2Ljava_lang_Object_2) at com.baidu.platform.comjni.tools.JNITools.CoordinateEncryptEx(Native Method)
原来在Application
需要初始化
/*** * 初始化定位sdk,建议在Application中创建 */ SDKInitializer.initialize(getApplicationContext());
标签:lang,baidu,JNITools,platform,报错,comjni,getDistance,DistanceUtil,tools From: https://www.cnblogs.com/eleven993/p/17096022.html