Library file not loading in 2.3 but loading in 4.0

前端 未结 2 1777
长发绾君心
长发绾君心 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.

    0 讨论(0)
  • 2021-01-27 06:31

    SOLVED My problem was solved by compiling/running on a different machine , I don't know how this affects the libworkso file but now it runs on both 2.3 and 4.0 .

    Adding this to close my open question

    0 讨论(0)
提交回复
热议问题