错误日志如下:
java.lang.UnsatisfiedLinkError: Native method not found: com.baidu.platform.comjni.tools.JNITools.CoordinateEncryptMc:(FFLjava/lang/Object;)Z
at com.baidu.platform.comjni.tools.JNITools.CoordinateEncryptMc(Native Method)
at com.baidu.platform.comapi.util.b.b(Unknown Source)
at com.baidu.mapapi.model.CoordUtil.ll2point(Unknown Source)
at com.baidu.mapapi.utils.DistanceUtil.getDistance(Unknown Source)
at com.baidu.mapapi.utils.SpatialRelationUtil.isCircleContainsPoint(Unknown Source)
错误原因:
未在Application中添加:
SDKInitializer.initialize(this);