NDK中的sample hello-jni 例子

来源:互联网 发布:关于网络的小品剧本 编辑:程序博客网 时间:2024/05/17 12:55

现在开始编译运行hello-jni的例子了。

http://jingyan.baidu.com/article/03b2f78c73b5a85ea237aeb0.html

上面的链接是学习hello-jni很完整的。


这个其中碰到的问题:

1,运行之前先编译NDK,然后在编译JAVA代码。编译遇到Unable to launch cygpath. Is Cygwin on the path

解决:1,工程右键,点Properties->C/C++ Build 的Building Settings中去掉Use default build command,然后输入${NDKROOT}/ndk-build.cmd

2,在C/C++ Build中点击Environment,点Add...添加环境变量NDKROOT,值为NDK的根目录。

0 1