I'm trying to build a medium-size project in Eclipse. It consists of main app project and two Android libraries. Everything worked fine until I added a very simple JNI library to main project.
When I run the app on device I see this exception in LogCat:
01-11 17:19:01.421: E/AndroidRuntime(26569):at java.lang.Runtime.loadLibrary(Runtime.java:429) Couldn't load xxx: findLibrary returned null
I googled around for similar problems and I believe that I did everything correctly:
- The only .c file and Android.mk file are placed in the 'jni' folder
- I build the library with ndk-build tool
- The .so library is correctly placed in the 'libs\armeabi' folder
- I see that the resulting apk file does indeed contain my native library
When I create a test project and link to the very same native code - it works fine. The problem persists in the main project. I already tried to create Eclipse project from scratch but it didn't help
I use Android SDK Tools v.16
Can anyone please help me with a suggestion?
Thanks!