Java.lang.UnsatisfiedLinkError:Couldn ' t load baidumapsdk workaround

Source: Internet
Author: User

The students who can't find so can check the problem from the following aspects:

1. Has the name of so been modified? The so name of our SDK is fixed, and if you rename it yourself, you won't be able to find so.
2, so the position is not correct. So needs to be placed in Libs/armeabi this folder, please check.
3, CPU architecture problems. Currently our SDK does not support x86 CPUs, so if your emulator or real machine is using the x86 architecture, then it is impossible to use our SDK.
4, or CPU architecture problems. Although we now support arm CPUs, for some special devices, so needs to be placed under the libs/armeabi-v7a folder.

If you still can't find an error with the so file, look down:

====================android studio=======================

If you are using Android Studio, and the API storage structure is as follows:

There must be no way to find so files, and Android Studio is different from eclipse. Eclipse simply imports all relevant files into the Libs. But Android studio needs to import the jar package into Libs but. So files need to have a directory called Jnilibs in the main directory, and then put the. so files in.

Change the location of the Armeabi folder and place it under the Jnilibs folder in the main directory, just like this:

================== successfully run =====================

Java.lang.UnsatisfiedLinkError:Couldn ' t load baidumapsdk workaround

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.