You checked the resulting .APK file (use the zip utility to view / unlock it) to see if your library goes through the packaging? I am a little suspicious that this may not be so, because I notice that everything that is built into the "libs" folder in the project and on my build machine ends up in the "lib" (no 's) folder in the APK.
I would not be surprised if it turns out that the Eclipse build process does not pack any libraries that it does not know about. This, of course, is in contrast to what happens to resources that are simply packaged because they are in the right place.
If you find that your library is not in your APK file, I donโt think you can just manually place it there, as it will not appear in the package manifest and will also violate any signing.
You did not mention whether the Eclipse project is an NDK project (right-click on the project, Android Tools-> Add Native Support). If not, I suspect you will need to do this in one, and then add your library to the Android.mk file as a dependency, not a target.
Or: you can try placing your library in / res in the project and use System.load () instead of System.loadLibrary () to load it. I admit that I never tried this myself, tho.
source share