Baidu Map SDK java.lang.UnsatisfiedLinkError:Couldn ' t load baidumapsdk

Source: Internet
Author: User


Error message java.lang.UnsatisfiedLinkError:Couldn ' t load baidumapsdk_v3_2_0_15 from loader dalvik.system.pathclassloader[ Dexpathlist[[zip file "/data/app/com.example.baidudemo-1.apk"],nativelibrarydirectories=[/data/app-lib/ Com.example.baidudemo-1,/vendor/lib,/system/lib]]: Findlibrary returned null

In Lib found obviously have libbaidumapsdk_v3_2_0_15.so this file, but why still error .... Wrote a demo found, no error, the last one to speculate, found

The difference is Armeabi and armeabi-v7a .

If there are any other. So files under the Armeabi folder, you also need to copy to armeabi-v7a




Do you have any meaning?


Why debug mode and release mode Adobe chooses a different folder?

Checked the following

Armeabi and armeabi-v7a to support different CPU types
Armeabi refers to the so library for the general purpose CPU of ARM, while the V7A CPU supports hardware floating point arithmetic. So Armeabi versatility, but slow, and v7a can give full play to the V7A CPU capacity, in the air packaging apk debug mode Adobe chose a versatile Armeabi mode.


Android supports the deep meaning of different CPUs
first of all, the hardware support is convenient to see, our adnroid devices so far mostly support arm chips, (Of course, the latest Android machine in the market now also supports a few other chips such as Intel, such as Intel's newest atom project Chip, which has been favored by android4.1). From the Android version to the extent that it supports ARM hardware encoding:


initially android1.6: Supports only armv4 and armv5te instruction sets.


to android2.0: Added support for arm-vfp,armv6,armv6t2 instruction set.


to android2.2: increased support for armv7-a instruction set.


So the armeabi-v7a should be related to conditions above which air limits support android2.2. android2.2 above can make the hardware play a bigger role.


I use Armeabi or armeabi-v7a
for an air project is the biggest bottleneck in terms of performance, so you can optimize a little bit, so if you use the so library when you connect to the Platform SDK or write ane, All personal recommendations are put under armeabi-v7a, not armeabi for compatibility.


Baidu Map SDK java.lang.UnsatisfiedLinkError:Couldn ' t load baidumapsdk

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.