问题描述
我要纳入小,瘦肉和平均基于C语言的语法分析器到我的Android项目。我已经做了JNI编程在过去,但没有任何类型的Android原生(C)的发展。我的计划是编译C lib放到SO创造周围JNI包装而我会在我的应用程序使用。请问这是怎么能够/应该如何解决?其次,也是最重要的问题 - 我怎么能有。所以到我的APK?它会去哪里?
I want to incorporate small, lean and mean C-based parser into my Android project. I've done JNI programming in the past but not any type of native (C) development on Android. My plan is to compile C lib into SO and create JNI wrapper around it which I'm going to use in my app. Is this how it can/should be done? Second and most important question - how can I include .so into my APK? Where would it go?
推荐答案
使用的Android NDK 结果
下载无文档
这会节省你写的lib JNI层,也将安装该应用程序在您的应用程序数据文件夹的lib文件夹。
This will save you from writing JNI layer for lib and also will install the app in the lib folder of your app data folder.
这篇关于Android的 - JNI指南的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!