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

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.