December 23rd, 2010, 10:54 AM
|
#1 (permalink)
|
|
New Member
Thread Author (OP)
Join Date: Dec 2010
Posts: 9
Device(s): Motorola Milestone (Android 2.1)
Carrier: Not Provided
Thanks: 0
Thanked 1 Time in 1 Post
|
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?
|
|
|