Library file not loading in 2.3 but loading in 4.0

前端 未结 2 1776
长发绾君心
长发绾君心 2021-01-27 06:21

My project contains a lib file libs/armebai/libworkso , this runs smoothly on a tablet running android 4.0 but when I try to run the same project on 2.3 my pr

2条回答
  •  [愿得一人]
    2021-01-27 06:28

    Rebuild for all possible CPU/ABI combinations. Android 4 often tries to load armeabi-v7a while Android 2.x is happy with armeabi.

    To do that, create/open Application.mk in the jni folder, and place the following:

    APP_ABI := armeabi x86 armeabi-v7a mips
    

    MIPS only if you've got NDK r8.

提交回复
热议问题