且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

库文件不加载在2.3,但装在4.0

更新时间:2022-12-12 22:06:22

解决我的问题解决了通过编译/在不同的机器上运行,我不知道这将如何影响libworkso文件,但现在它运行在2.3和4.0。

添加该收我的悬而未决的问题

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 project crashes , after commenting out

// System.loadLibrary("work");

in my code the project runs on 2.3 running tablet and crashes only when I call any native functions defined in my project .

Edit:

08-13 10:54:26.860: E/AndroidRuntime(1757): java.lang.ExceptionInInitializerError

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