简体   繁体   English

Android NDK java.lang.UnsatisfiedLinkError错误

[英]Android NDK java.lang.UnsatisfiedLinkError error

I have a working project that uses NDK. 我有一个使用NDK的工作项目。

I'm trying to import the NDK libraries into another project, and calling the NDK functions from this new project. 我试图将NDK库导入另一个项目,并从这个新项目中调用NDK函数。

I've copied the jni, libs and obj folders(including sub-folders) from the working project to the new project. 我已经将jni,libs和obj文件夹(包括子文件夹)从工作项目复制到了新项目。

I've then tried to call the functions in the new project. 然后,我尝试在新项目中调用函数。 However, I'm getting java.lang.UnsatisfiedLinkError whenever I call the function. 但是,每当我调用该函数时,都会收到java.lang.UnsatisfiedLinkError。

Is there something else I need to do? 还有什么我需要做的吗?

Thanks. 谢谢。

您的项目数据包名称和活动名称相同吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM