search

Home  >  Q&A  >  body text

android - 使用百度sdk调用SDKInitializer.initialize(this)时报错?

07-24 14:45:59.525 27354-27354/com.xinguan14.jdyp E/NativeLoader: found libBaiduMapSDK_base_v4_0_0.so error
07-24 14:45:59.527 27354-27354/com.xinguan14.jdyp E/art: No implementation found for int com.baidu.platform.comjni.engine.JNIEngine.initClass(java.lang.Object, int) (tried Java_com_baidu_platform_comjni_engine_JNIEngine_initClass and Java_com_baidu_platform_comjni_engine_JNIEngine_initClass__Ljava_lang_Object_2I)
07-24 14:45:59.527 27354-27354/com.xinguan14.jdyp D/AndroidRuntime: Shutting down VM
                                                                    
                                                                    
                                                                    --------- beginning of crash
07-24 14:45:59.528 27354-27354/com.xinguan14.jdyp E/AndroidRuntime: FATAL EXCEPTION: main
                                                                    Process: com.xinguan14.jdyp, PID: 27354
                                                                    java.lang.UnsatisfiedLinkError: No implementation found for int com.baidu.platform.comjni.engine.JNIEngine.initClass(java.lang.Object, int) (tried Java_com_baidu_platform_comjni_engine_JNIEngine_initClass and Java_com_baidu_platform_comjni_engine_JNIEngine_initClass__Ljava_lang_Object_2I)
                                                                        at com.baidu.platform.comjni.engine.JNIEngine.initClass(Native Method)
                                                                        at com.baidu.platform.comjni.engine.AppEngine.InitClass(Unknown Source)
                                                                        at com.baidu.platform.comapi.a.<clinit>(Unknown Source)
                                                                        at com.baidu.platform.comapi.b.a(Unknown Source)
                                                                        at com.baidu.mapapi.SDKInitializer.initialize(Unknown Source)
                                                                        at com.baidu.mapapi.SDKInitializer.initialize(Unknown Source)
                                                                        at com.xinguan14.jdyp.MyApplication.initBaidu(MyApplication.java:146)
                                                                        at com.xinguan14.jdyp.MyApplication.onCreate(MyApplication.java:60)
                                                                        at com.android.tools.fd.runtime.BootstrapApplication.onCreate(BootstrapApplication.java:369)
                                                                        at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1014)
                                                                        at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4726)
                                                                        at android.app.ActivityThread.access$1600(ActivityThread.java:153)
                                                                        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1412)
                                                                        at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                        at android.os.Looper.loop(Looper.java:148)
                                                                        at android.app.ActivityThread.main(ActivityThread.java:5438)
                                                                        at java.lang.reflect.Method.invoke(Native Method)
                                                                        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
                                                                        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)
07-24 14:45:59.537 27354-27354/com.xinguan14.jdyp I/Process: Sending signal. PID: 27354 SIG: 9
07-24 14:46:09.949 27512-27564/com.xinguan14.jdyp W/System: ClassLoader referenced unknown path: /system/framework/tcmclient.jar
07-24 14:46:10.150 27544-27544/com.xinguan14.jdyp:bmobcore E/NativeLoader: found libBaiduMapSDK_base_v4_0_0.so error
07-24 14:46:10.152 27544-27544/com.xinguan14.jdyp:bmobcore E/art: No implementation found for int com.baidu.platform.comjni.engine.JNIEngine.initClass(java.lang.Object, int) (tried Java_com_baidu_platform_comjni_engine_JNIEngine_initClass and Java_com_baidu_platform_comjni_engine_JNIEngine_initClass__Ljava_lang_Object_2I)
07-24 14:46:10.152 27544-27544/com.xinguan14.jdyp:bmobcore D/AndroidRuntime: Shutting down VM
07-24 14:46:10.153 27544-27544/com.xinguan14.jdyp:bmobcore E/AndroidRuntime: FATAL EXCEPTION: main
                                                                             Process: com.xinguan14.jdyp:bmobcore, PID: 27544
                                                                             java.lang.UnsatisfiedLinkError: No implementation found for int com.baidu.platform.comjni.engine.JNIEngine.initClass(java.lang.Object, int) (tried Java_com_baidu_platform_comjni_engine_JNIEngine_initClass and Java_com_baidu_platform_comjni_engine_JNIEngine_initClass__Ljava_lang_Object_2I)
                                                                                 at com.baidu.platform.comjni.engine.JNIEngine.initClass(Native Method)
                                                                                 at com.baidu.platform.comjni.engine.AppEngine.InitClass(Unknown Source)
                                                                                 at com.baidu.platform.comapi.a.<clinit>(Unknown Source)
                                                                                 at com.baidu.platform.comapi.b.a(Unknown Source)
                                                                                 at com.baidu.mapapi.SDKInitializer.initialize(Unknown Source)
                                                                                 at com.baidu.mapapi.SDKInitializer.initialize(Unknown Source)
                                                                                 at com.xinguan14.jdyp.MyApplication.initBaidu(MyApplication.java:146)
                                                                                 at com.xinguan14.jdyp.MyApplication.onCreate(MyApplication.java:60)
                                                                                 at com.android.tools.fd.runtime.BootstrapApplication.onCreate(BootstrapApplication.java:369)
                                                                                 at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1014)
                                                                                 at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4726)
                                                                                 at android.app.ActivityThread.access$1600(ActivityThread.java:153)
                                                                                 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1412)
                                                                                 at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                                 at android.os.Looper.loop(Looper.java:148)
                                                                                 at android.app.ActivityThread.main(ActivityThread.java:5438)
                                                                                 at java.lang.reflect.Method.invoke(Native Method)
                                                                                 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
                                                                                 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)
黄舟黄舟2772 days ago1049

reply all(6)I'll reply

  • 迷茫

    迷茫2017-04-17 17:30:39

    Already solved. so file location problem

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 17:30:39

    .so file problem, download the latest Baidu sdk, create a new jniLibs folder under main, and copy it into it

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-17 17:30:39

    It is estimated that your library has not been imported completely. Check to see if all your .so files have been imported

    reply
    0
  • 黄舟

    黄舟2017-04-17 17:30:39

    The error reported should be a problem with your .so file. It is possible that you are using an emulator. It is recommended to use a real machine for debugging.

    reply
    0
  • PHPz

    PHPz2017-04-17 17:30:39

    07-24 14:45:59.525 27354-27354/com.xinguan14.jdyp E/NativeLoader: found libBaiduMapSDK_base_v4_0_0.so error

    The so library is not imported correctly? Or the version of the so library does not correspond to the jar package.

    关于android studio导入so库的方法,请看方法5 http://blog.csdn.net/yy1300326388/article/details/46422939

    reply
    0
  • PHPz

    PHPz2017-04-17 17:30:39

    Put all the jar packages in the libs directory instead of the lib directory. It will be better if you do it a few times.

    reply
    0
  • Cancelreply