开发者社区> 问答> 正文

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

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

ERROR_1: Invalid arguments 'Candidates are:double contourArea(const cv::InputArray &, bool)'
ERROR_2: Invalid arguments 'Candidates are:const std::vector<cv::Point
<int>,std::allocator<cv::Point_<int>>> & at(?)std::vector<cv::Point_<int>,std::allocator<cv::Point_<int>>> & at(?)'
ERROR_3: Method 'size' could not be resolved

ERROR: Invalid arguments 'Candidates are:CvSeq * cvCreateSeq(int, ?, ?, CvMemStorage *)'

ERROR:  Type 'CV_MAT_ELEM_PTR(*cMatrix, 0, 0)' could not be resolved

展开
收起
kun坤 2020-05-31 21:46:48 365 0
1 条回答
写回答
取消 提交回答
  • 自己解决了。只要去掉错误提示即可运行。

    2020-05-31 21:46:54
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
58同城Android客户端Walle框架演进与实践之路 立即下载
Android组件化实现 立即下载
蚂蚁聚宝Android秒级编译——Freeline 立即下载