Android NDK JNI, Method 'xxx' could not be resolved

用C++做了个Opencv的项目,想移植Android。在使用NDK开发时,遇到一些问题,C++源文件cpp中有一些函数参数无效,或无法找到。求大神帮忙,万分感激!

CSDN移动问答
ERROR_1: Invalid arguments 'Candidates are:double contourArea(const cv::_InputArray &, bool)'

ERROR_2: Invalid arguments 'Candidates are:const std::vectorcv::Point_<int,std::allocatorcv::Point_<int>> & at(?)std::vectorcv::Point_<int,std::allocatorcv::Point_<int>> & at(?)'

ERROR_3: Method 'size' could not be resolved

CSDN移动问答
ERROR: Invalid arguments 'Candidates are:CvSeq * cvCreateSeq(int, ?, ?, CvMemStorage *)'

CSDN移动问答
ERROR: Type 'CV_MAT_ELEM_PTR(*cMatrix, 0, 0)' could not be resolved

自己解决了,去掉错误提示,就可以正常运行了

怎么去掉错误提示???????????????

怎么去掉错误提示???????????????

去掉错误提示虽然可以运行项目,但是c文件里定义的方法又有什么意义呢
C/C++ General-->Code Anaylsis,选择use project settings,把最后几个取消勾选就去掉了错误提示