Eclipse ADT 23 running Baidu Map official online demo appeared fatal error

Source: Internet
Author: User

The error message appears as follows: 05-04 08:23:49.993:e/androidruntime (2948): FATAL exception:main05-04 08:23:49.993:e/androidruntime ( 2948): java.lang.exceptionininitializererror05-04 08:23:49.993:e/androidruntime (2948): at Com.baidu.mapapi.SDKInitializer.initialize (Unknown Source) 05-04 08:23:49.993:e/androidruntime (2948): at Com.baidu.mapapi.SDKInitializer.initialize (Unknown Source) 05-04 08:23:49.993:e/androidruntime (2948): at Org.example.baidumap.MainActivity.onCreate (mainactivity.java:24) 05-04 08:23:49.993:e/androidruntime (2948): at Android.app.Instrumentation.callActivityOnCreate (instrumentation.java:1047) 05-04 08:23:49.993:e/androidruntime ( 2948): At Android.app.ActivityThread.performLaunchActivity (activitythread.java:1611) 05-04 08:23:49.993:e/ Androidruntime (2948): at Android.app.ActivityThread.handleLaunchActivity (activitythread.java:1663) 05-04 08:23:49.993:e/androidruntime (2948): at android.app.activitythread.access$1500 (activitythread.java:117) 05-04 08:23:49.993:e/androidruntime (2948): at Android.app.activitythread$h.handlemessage (activitythread.java:931) 05-04 08:23:49.993:e/androidruntime (2948): at Android.os.Handler.dispatchMessage (handler.java:99) 05-04 08:23:49.993:e/androidruntime (2948): at Android.os.Looper.loop (looper.java:130) 05-04 08:23:49.993:e/androidruntime (2948): at Android.app.ActivityThread.main (activitythread.java:3683) 05-04 08:23:49.993:e/androidruntime (2948): at Java.lang.reflect.Method.invokeNative (Native Method) 05-04 08:23:49.993:e/androidruntime (2948): at Java.lang.reflect.Method.invoke (method.java:507) 05-04 08:23:49.993:e/androidruntime (2948): at Com.android.internal.os.zygoteinit$methodandargscaller.run (zygoteinit.java:839) 05-04 08:23:49.993:e/ Androidruntime (2948): at Com.android.internal.os.ZygoteInit.main (zygoteinit.java:597) 05-04 08:23:49.993:e/ Androidruntime (2948): at Dalvik.system.NativeStart.main (Native Method) 05-04 08:23:49.993:e/androidruntime (2948): caused by:java.lang.UnsatisfiedLinkError:Couldn ' t load baidumapsdk_v3_1_0:findLibrary returned null05-04 08:23:49.993:e/androidruntime (2948): at Java.lang.Runtime.loadLibrary (runtime.java:429)  05-04 08:23:49.993:e/androidruntime (2948): at Java.lang.System.loadLibrary (system.java:554) 05-04 08:23:49.993:e/androidruntime (2948): at com.baidu.mapapi.a.<clinit> (Unknown Source) 05-04 08:23:49.993:e/ Androidruntime (2948): ... more  Solution:  Main source of modification:http://bbs.lbsyun.baidu.com/forum.php?mod=viewthread&tid=10708  The reason is that there is a problem with the configuration of the emulator being used.Simulator to use ARM version of CPU。 Note: For the emulator, after using the arm version of the CPU to modify the emulator to arm version, the following issue occurs: BAIDUMAPSDK error "" Authentication errorcode:102 uid:null appid-1 msg : Ip/sn/scode/referer Illeg This is because of the key problem. The solution on the net is as follows: Reapply a key directly, it is possible. At the same time, for the mobile phone (real machine), the above errors can be ignored, that is: on the real machine, it is still available.Note: For categories such as the upper CPU, if you are using Arm (Armeabi), the directory created in the Libs directory is Armeabi, and for the CPU using arm (ARMEABI-V7A), the directory created in the Libs directory is armeabi-v7a Sometimes, it is necessary to create two directories, in concrete cases.

Eclipse ADT 23 running Baidu Map official online demo appeared fatal error

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.