一、编译jni代码成功,但是eclipse显示代码报错,例如:Type 'jstring' could not be resolved,Type 'jobject'
could not be resolved 。
解决方法:
右键点击 工程名 ,选择菜单 [Properties],
弹出 "Properties for 工程名" 窗口,
在窗口左窗栏中选择 C/C++ General -> Paths and Symbols ,
在窗口右窗栏中选择 Includes 选项页,
在 Language 栏中的
GNU C 和 GNU C++ 添加 绝对路径/android-ndk-r8b/platforms/android-8/arch-
arm/usr/include