armeabi and armeabi-v7a folder

后端 未结 3 1220
庸人自扰
庸人自扰 2021-02-04 12:14

I\'m working on an Android project and I am using the NDK to call native methods. I have two libraries (.so files) and one is located in the libs/armeabi folder an

3条回答
  •  暖寄归人
    2021-02-04 12:51

    The library loader will try to look for libraries that most closely match the architecture that you're running on. In general, you should compile one version of the library for each of the abis that you're planning to support (armeabi, armeabi-v7a, x86, mips) so that the compiler can optimize correctly.

    The directory structure is how Android determines which lib to load, so it's critical you don't change it.

提交回复
热议问题