Why use armeabi-v7a code over armeabi code?

前端 未结 3 1152
你的背包
你的背包 2020-11-28 02:06

In my current project I make use of multiple .so files. These are located at the armeabi and armeabi-v7a folder. Unfortunately one of the .so files is a 6MB and I need to re

3条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-28 02:40

    Depends on what your native code does, but v7a has support for hardware floating point operations, which makes a huge difference. armeabi will work fine on all devices, but will be a lot slower, and won't take advantage of newer devices' CPU capabilities. Do take some benchmarks for your particular application, but removing the armeabi-v7a binaries is generally not a good idea. If you need to reduce size, you might want to have two separate apks for older (armeabi) and newer (armeabi-v7a) devices.

提交回复
热议问题