Android NDK *** could not be resolved 无法加载opengl库

来源:互联网 发布:有个淘宝的软件是什么 编辑:程序博客网 时间:2024/04/16 23:41
Type '*****' could not be resolved
Method '******' could not be resolved
等等很多诸如此类的错误

解决方法:
是由于没有将jni.h导入的缘故,而这个文件在ndk的目录下面。所以,参照以下步骤:
Project Properties -> C/C++ General -> Path and Symbols
选择include标签,Add -> $Android_NDK_HOME/platforms/android-14/arch-arm/usr/include
且选中All languages.
最后Apply -> OK
这样错误就解决了。
0 0
原创粉丝点击