Use of pre-compiled native code in APK


Last Updated: 2010-12-23 16:54:29
  1. 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 (Text):
    1.  
    2. 12-23 14:36:59.032: ERROR/AndroidRuntime(2509): FATAL EXCEPTION: main
    3. 12-23 14:36:59.032: ERROR/AndroidRuntime(2509): java.lang.ExceptionInInitializerError
    4. 12-23 14:36:59.032: ERROR/AndroidRuntime(2509):     at java.lang.Class.newInstanceImpl(Native Method)
    5. ...
    6. 12-23 14:36:59.032: ERROR/AndroidRuntime(2509): Caused by: java.lang.UnsatisfiedLinkError: Library book2png not found
    7. 12-23 14:36:59.032: ERROR/AndroidRuntime(2509):     at java.lang.Runtime.loadLibrary(Runtime.java:461)
    8. 12-23 14:36:59.032: ERROR/AndroidRuntime(2509):     at java.lang.System.loadLibrary(System.java:557)
    9. ...
    10.  
    Someone can help?

    Advertisement

Share This Page