Platform affinity for. So files

Source: Internet
Author: User
Platform affinity for. So files

It was a simple question, but it was not clear to me at the time that the distinction had resulted in a lot of time spent on testing and modification;


When using the Baidu Map SDK there are two library file jar packages and a C + +. So file

In my own demo project This is no problem, directly get the map GPS information I want, and then I put this demo function in the project when there is a problem, and wasted me a long time to solve


In this project, using the. So file has four packages, Armeabi, ARMEABI-V7A, MIPS, x86, of course, you certainly know the difference between these files, but the same configuration in the same demo, but not the normal use of the. so file-- Libocsdk4d.so, and do not report any errors, originally thought is the source program problem, after the test found to be. So file path problem, in the demo because only the Armeabi folder is given, and in this folder gives the. so file, so can be used directly, and in the project because there are four different platform files Clip In this case, you must place the. So file in all four folders, or in the. so file of the platform used by your model, so that you can use the. so file, which is very similar to layout adaptation, but it's very different, but it's a lot more important to know where the problem is.

The correct placement location:


Platform affinity for. So files

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.