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

2023-09-04 05:13:48 作者:提灯寻你

我的项目包含一个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。

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

VS启动时,如何不加载多余的dll文件

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