UnsatisfiedLinkError: Couldn't load X from loader

我是研究僧i 提交于 2019-12-05 10:28:37

If the example projects from the NDK give the same error, are you sure it's built for the right architecture? Most android devices run ARM processors, but some run on x86 and mips, and many NDK samples by default only build for ARM.

To build for all architectures, add "APP_ABI := all" to jni/Application.mk.

Also, to make sure your adjusted build process actually works, try building the .so by running ndk-build in a terminal manually, in the project root, for a NDK sample first. (You might need to refresh the folder structure in eclipse after this, to make sure the newly built libs are found and included.)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!