Skip to content Skip to sidebar Skip to footer

Android - 'couldn't Load Foo: Findlibrary Returned Null'

I know that there are already posts about this error around stack overflow, but from what I have found here on SO and on Google don't line up with my problem. I am trying to run my

Solution 1:

shouldn't include $(BUILD_SHARED_LIBRARY) be used instead of include $(BUILD_EXECUTABLE)?

Solution 2:

Well, I've gotten passed the error. I had asked a different question last month, and while trying to solve that, this error went away. It had to do with setting my environment PATH variable to the NDK folder location. This is a link to a more in depth answer.

Solution 3:

Make sure to build your library before running your application (that use the library) with ndk-build

Solution 4:

BUILD_EXECUTABLE is wrong, this will build an executable (hint, hint..) instead of a shared library. When you use System.loadLibrary(..) you have to use BUILD_SHARED_LIBRARY. If it still does not work, there might be another mistake but using BUILD_EXECUTABLE for something intended to be used as a shared library is wrong even though it 'may' work under some circumstances.

Solution 5:

I've got this issue too, but for my situation, You have to add processor based library to your project libs folder. If you are using eclipse.

enter image description here

Post a Comment for "Android - 'couldn't Load Foo: Findlibrary Returned Null'"