I have an android application which uses some prebuilt native libraries (Osmand prebuilt libraries). The problem is that when I run the application on mobile phone, it says that these libraries are missing. When I looked in the .apk file, there is no "lib" folder - how to set up eclipse to export them?
Asked
Active
Viewed 2,628 times
1 Answers
6
Finally I have found the solution. It's easier then I expected. All I need is to place the libraries into the libs folder.
libs
\---armeabi
\---armeabi-v7a
\---mips
\---x86
Eclipse creates the lib folder in apk by itself.

Krivers
- 1,986
- 2
- 22
- 45
-
Do you mean to run an apk on x86 emulation I have to create `libs-x86` folder inside `libs` ? If not then what ? – Prateek Apr 24 '14 at 10:16
-
1@prateek : you must create a subfolder named x86 in the directory libs – Vincent May 12 '14 at 15:43
-
To get the native libraries in the apk, you must also add the native library location in proj props (workspace/libs in this case) as well as adding it to the exports – Paul Gregoire Feb 18 '15 at 15:41
-
i use android studio , i copy external library like picasso on x86 folder but it`s not work . – mahdi Apr 16 '15 at 05:25