Android - 'couldn't Load Foo: Findlibrary Returned Null'
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.
Post a Comment for "Android - 'couldn't Load Foo: Findlibrary Returned Null'"