java.lang.UnsatisfiedLinkError: No implementation found for int com.baidu.platform.comjni.map.commonmemcache.JNICommonMemCache.Create()

时间:2023-01-28 06:09:45

完整异常:

Process: com.example.ai.tabhostdemo, PID: 1287
java.lang.UnsatisfiedLinkError: No implementation found for int com.baidu.platform.comjni.map.commonmemcache.JNICommonMemCache.Create() (tried Java_com_baidu_platform_comjni_map_commonmemcache_JNICommonMemCache_Create and Java_com_baidu_platform_comjni_map_commonmemcache_JNICommonMemCache_Create__)
at com.baidu.platform.comjni.map.commonmemcache.JNICommonMemCache.Create(Native Method) at com.baidu.platform.comjni.map.commonmemcache.a.a(Unknown Source)at com.baidu.platform.comapi.c.c.b(Unknown Source) at com.baidu.mapapi.a.c(Unknown Source)at com.baidu.mapapi.SDKInitializer.initialize(Unknown Source) at com.baidu.mapapi.SDKInitializer.initialize(Unknown Source)

这个异常主要是百度地图libBaiduMapSDK_v3_4.so及以下版本不支持64位处理器,如果你的手机正好是64处理器app就会报错(无法打开app),解决方法有两种

第一种:将你的libBaiduMapSDK_v3_4.so替换成libBaiduMapSDK_v3_5_0_31.so即可

第二种:升级最新版百度地图api