Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

test: Reply
 
LinkBack Thread Tools
Old 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
Default 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?

Marky.Vasconcelos is offline  
Reply With Quote
sponsored links
Reply
Tags
native library, ndk


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 10:00 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.