正在回答 回答被采纳积分+1
包jar包全加了之后,没有上面说的报红的问题:但运行不起来,报异常:
2020-02-26 17:37:52.955 31864-31864/? I/ample.baidudem: Not late-enabling -Xcheck:jni (already on)
2020-02-26 17:37:53.053 31864-31864/? E/ample.baidudem: Unknown bits set in runtime_flags: 0x8000
2020-02-26 17:37:53.054 31864-31864/? W/ample.baidudem: Unexpected CPU variant for X86 using defaults: x86
2020-02-26 17:37:53.639 31864-31864/com.example.baidudemo E/NativeLoader: found lib armeabi/BaiduMapSDK_base_v6_1_0.so error
2020-02-26 17:37:53.646 31864-31864/com.example.baidudemo E/ample.baidudem: No implementation found for int com.baidu.mapsdkplatform.comjni.tools.JNITools.initClass(java.lang.Object, int) (tried Java_com_baidu_mapsdkplatform_comjni_tools_JNITools_initClass and Java_com_baidu_mapsdkplatform_comjni_tools_JNITools_initClass__Ljava_lang_Object_2I)
2020-02-26 17:37:53.646 31864-31864/com.example.baidudemo D/AndroidRuntime: Shutting down VM
--------- beginning of crash
2020-02-26 17:37:53.651 31864-31864/com.example.baidudemo E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.baidudemo, PID: 31864
java.lang.UnsatisfiedLinkError: No implementation found for int com.baidu.mapsdkplatform.comjni.tools.JNITools.initClass(java.lang.Object, int) (tried Java_com_baidu_mapsdkplatform_comjni_tools_JNITools_initClass and Java_com_baidu_mapsdkplatform_comjni_tools_JNITools_initClass__Ljava_lang_Object_2I)
at com.baidu.mapsdkplatform.comjni.tools.JNITools.initClass(Native Method)
at com.baidu.mapsdkplatform.comjni.tools.a.b(Unknown Source:6)
at com.baidu.mapsdkplatform.comapi.a.<clinit>(Unknown Source:23)
at com.baidu.mapsdkplatform.comapi.a.a(Unknown Source:0)
at com.baidu.mapsdkplatform.comapi.c.a(Unknown Source:17)
at com.baidu.mapapi.SDKInitializer.initialize(Unknown Source:2)
at com.baidu.location.demo.LocationApplication.onCreate(LocationApplication.java:30)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1182)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6460)
at android.app.ActivityThread.access$1300(ActivityThread.java:219)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1859)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7356)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)
2020-02-26 17:37:53.711 31864-31864/com.example.baidudemo I/Process: Sending signal. PID: 31864 SIG: 9
- 参与学习 人
- 提交作业 220 份
- 解答问题 1800 个
本阶段是联网及数据处理的必备技能。课程从网络基础知识到线程间协同工作、异步下载处理;从文件存储、到轻量级数据库SQLite的使用;最后利用最流程的第三方框架助你快速开发企业级APP。
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星