且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在不使用 NDK 的情况下将 Andrioid NDK 构建的共享库添加到我的 APK?

更新时间:2022-11-03 23:24:53

实际上比我想象的要容易.我所要做的就是将 .so 放在 libs/armeabi-v7a - Eclipse 看到它并集成到 APK 中.

It's actually easier than I expected. All I had to do is place the .so in libs/armeabi-v7a - Eclipse saw it and integrated into APK.

但是,我是通过从另一个 Eclipse 项目复制来创建这个项目的,该项目实际上是从源代码构建这个 .so.所以,我认为有些设置是我需要设置的.随意添加更正或编辑我的答案.

However, I've made this project by copying from another Eclipse project, which was actually building this .so from source. So, I think there were some settings that I would otherwise need to set. Feel free to add corrections or edit my answer.