库文件不加载在2.3,但装在4.0 [英] Library file not loading in 2.3 but loading in 4.0
问题描述
我的项目包含一个lib文件中的库/ armebai / libworkso 这种运行流畅运行Android 4.0的平板电脑,但是当我尝试运行2.3我的项目崩溃的同一个项目,注释掉后
//的System.loadLibrary(工作);
在我的code项目运行在2.3平板电脑上运行,只有崩溃的时候我叫我的项目中定义的任何原生功能。
编辑:
10月8日至13号:54:26.860:E / AndroidRuntime(1757):java.lang.ExceptionInInitializerError
解决我的问题解决了通过编译/在不同的机器上运行,我不知道这将如何影响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
这篇关于库文件不加载在2.3,但装在4.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!