ndk开发环境搭建
没有添加NDK路径选项的jar包
eclipse上的ndk插件,下载后直接拷贝到eclipse根目录的plugins文件夹,重启eclipse即可。
ndk jni的学习
Android NDK是一个允许Android应用开发人员使用C或C++源文件编译并嵌入到本机源代码中的应用程序包的一组工具。
ndk 开发源码,如积分不够,可至GitHub平台下载。https://github.com/flueky/Flueky-Sample/tree/master/ndk-sample
谷歌官方的NDK开发示例,因为需要翻墙之类的麻烦事,所以伸手党必备,哈哈
ndk直接编译cpp code需要的mk文件,包括Android.mk和Application.mk两个文 件,看里面备注来决定编译bin还是so
目前时间:2018-6-27 记录一下Ndk 开发。主要内容是: (1)java调用c++方法 (2)c++调用java类成员属性 (3)c++调用java静态属性 (4)c++调用java类成员方法
自己实现Jni本地调用C++代码。