• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Use of pre-compiled native code in APK

Hi, i'm developing for Android and stop cause of this problem.

If I have only the .so file (generated by cross-compilers tools for android), where do I put this file in my application for use in device?

I put it in a folder named 'libs', but when initializing the app theres an error(I see in Logcat on DDMS)

Code:
12-23 14:36:59.032: ERROR/AndroidRuntime(2509): FATAL EXCEPTION: main
12-23 14:36:59.032: ERROR/AndroidRuntime(2509): java.lang.ExceptionInInitializerError
12-23 14:36:59.032: ERROR/AndroidRuntime(2509):     at java.lang.Class.newInstanceImpl(Native Method)
...
12-23 14:36:59.032: ERROR/AndroidRuntime(2509): Caused by: java.lang.UnsatisfiedLinkError: Library book2png not found
12-23 14:36:59.032: ERROR/AndroidRuntime(2509):     at java.lang.Runtime.loadLibrary(Runtime.java:461)
12-23 14:36:59.032: ERROR/AndroidRuntime(2509):     at java.lang.System.loadLibrary(System.java:557)
...
Someone can help?
 
Back
Top Bottom