0

I am a beginer in android.Now I am woking with an app that use native libraries.I need to know how to add a '.so' library file in my android project.Any one please help me.

Arun J
  • 188
  • 1
  • 1
  • 13
  • A perfect duplicate of http://stackoverflow.com/questions/8295728/how-to-add-a-shared-library-to-my-apk – AurA Apr 25 '13 at 05:44
  • Another duplicate of http://stackoverflow.com/questions/4882167/creating-a-product-sdk-how-do-i-add-a-native-lib-so-and-a-jar-with-the-sdk-i – AurA Apr 25 '13 at 05:44

1 Answers1

2

after making your native c code and header file browse to the root directory of your project and run ndk-build command.That will generate the .so file and then place it inside your project/libs folder

cafebabe1991
  • 4,928
  • 2
  • 34
  • 42
  • I already have the so file from client.Can I get a solution while putting this file in the libs folder? – Arun J Apr 25 '13 at 10:51
  • its recomended to build everytime there's a change in the native code,so if you no changes have been list last build you can add that to libs but if there are new changes try building again using ndk-build – cafebabe1991 Apr 25 '13 at 10:55