2 praykeke PrayKeke 于 2016.03.28 12:27 提问

在调用百度地图Sdk时出现以下报错,改如何解决?

03-28 00:03:17.710: I/System.out(1125): so Failed to load.
03-28 00:03:17.770: W/dalvikvm(1125): No implementation found for native Lcom/baidu/platform/comjni/map/commonmemcache/JNICommonMemCache;.Create:()I
03-28 00:03:17.770: D/AndroidRuntime(1125): Shutting down VM
03-28 00:03:17.770: W/dalvikvm(1125): threadid=1: thread exiting with uncaught exception (group=0xb3a24b90)
03-28 00:03:17.780: E/AndroidRuntime(1125): FATAL EXCEPTION: main
03-28 00:03:17.780: E/AndroidRuntime(1125): Process: com.map.activity, PID: 1125
03-28 00:03:17.780: E/AndroidRuntime(1125): java.lang.UnsatisfiedLinkError: Native method not found: com.baidu.platform.comjni.map.commonmemcache.JNICommonMemCache.Create:()I
03-28 00:03:17.780: E/AndroidRuntime(1125): at com.baidu.platform.comjni.map.commonmemcache.JNICommonMemCache.Create(Native Method)
03-28 00:03:17.780: E/AndroidRuntime(1125): at com.baidu.platform.comjni.map.commonmemcache.a.a(Unknown Source)
03-28 00:03:17.780: E/AndroidRuntime(1125): at com.baidu.platform.comapi.c.c.b(Unknown Source)
03-28 00:03:17.780: E/AndroidRuntime(1125): at com.baidu.mapapi.a.c(Unknown Source)
03-28 00:03:17.780: E/AndroidRuntime(1125): at com.baidu.mapapi.SDKInitializer.initialize(Unknown Source)
03-28 00:03:17.780: E/AndroidRuntime(1125): at com.baidu.mapapi.SDKInitializer.initialize(Unknown Source)
03-28 00:03:17.780: E/AndroidRuntime(1125): at com.map.activity.MainActivity.onCreate(MainActivity.java:78)
03-28 00:03:17.780: E/AndroidRuntime(1125): at android.app.Activity.performCreate(Activity.java:5243)
03-28 00:03:17.780: E/AndroidRuntime(1125): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
03-28 00:03:17.780: E/AndroidRuntime(1125): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2140)
03-28 00:03:17.780: E/AndroidRuntime(1125): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2226)
03-28 00:03:17.780: E/AndroidRuntime(1125): at android.app.ActivityThread.access$700(ActivityThread.java:135)
03-28 00:03:17.780: E/AndroidRuntime(1125): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1397)
03-28 00:03:17.780: E/AndroidRuntime(1125): at android.os.Handler.dispatchMessage(Handler.java:102)
03-28 00:03:17.780: E/AndroidRuntime(1125): at android.os.Looper.loop(Looper.java:137)
03-28 00:03:17.780: E/AndroidRuntime(1125): at android.app.ActivityThread.main(ActivityThread.java:4998)
03-28 00:03:17.780: E/AndroidRuntime(1125): at java.lang.reflect.Method.invokeNative(Native Method)
03-28 00:03:17.780: E/AndroidRuntime(1125): at java.lang.reflect.Method.invoke(Method.java:515)
03-28 00:03:17.780: E/AndroidRuntime(1125): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:777)
03-28 00:03:17.780: E/AndroidRuntime(1125): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:593)
03-28 00:03:17.780: E/AndroidRuntime(1125): at dalvik.system.NativeStart.main(Native Method)
03-28 00:03:39.210: I/Process(1125): Sending signal. PID: 1125 SIG: 9

3个回答

bdmh
bdmh   Ds   Rxr 2016.03.28 13:03

你是不是少so文件啊,你下一个demo,把so文件看看少不少

u011249920
u011249920   2016.03.28 13:05

看错误提示就是缺文件阿

luochoudan
luochoudan   Ds   Rxr 2016.03.28 14:37

“so Failed to load.”
应该就是so文件出问题了,要么是没初始化。先把百度的demo跑一下试试。

Csdn user default icon
上传中...
上传图片
插入图片