Caused By:java.lang.UnsatisfiedLinkError ... Solution to the problem

Source: Internet
Author: User

caused by:java.lang.UnsatisfiedLinkError:Couldn ' t load Baidumapvos_v2_1_3:findlibrary returned NULL

In the use of Baidu Map encountered this problem online search under a variety of methods are not good I want to die of heart have. Have you ever come across the experience of asking for a share of the problem?

Later saw the Baidu Map SDK after the demo, because there is a file liblocsdk.so, must be placed in the Libs/armeabi directory. The corresponding liblocsdk.so to the corresponding directory, the problem solved perfectly. The problem is the perfect solution, but this liblocsdk.so file is what kind of dongdong. After checking the information later:

The so file is a dynamic link that loads the library by the operating system loader when the executable file is loaded or run. Most operating systems resolve external references (such as libraries) as part of the load process. On these systems, the executable file contains a table called Import directory, each of which contains the name of a library. Depending on the name of the record in the table, the loader searches for the required library on the hard disk, loads it into a predetermined location in memory, and then updates the executable program based on the address of the library that is determined after the library is loaded. An executable program invokes a function in the library or references the data in the library based on the updated library information. This type of dynamic loading becomes loaded at load time, and is used by most systems including Windows and Linux.  One of the most complex tasks that the loader has to do when loading the application is the load-time link. is the equivalent of a Windows DLL file. You do not have a program DLL file, you must not run the program.

Through this experience, I have a profound understanding of the corresponding so document.

See more highlights of this column: http://www.bianceng.cn/Programming/extra/

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.