Opencv4Android:如何在eclipse中使用它



我是Android世界的新手,将在其中使用OpenCV库。我从源代码forge下载了Opencv4Android SDK,并尝试使用本教程中的包资源管理器在eclipse中导入它。一切都很顺利,但我遇到了这个错误:

Unable to resolve target 'android-9'    OpenCV Library - 2.4.2      Unknown Android Target Problem  

The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files    Video.java  /OpenCV Library - 2.4.2/src/org/opencv/video    line 1  Java Problem  

The project cannot be built until build path errors are resolved    OpenCV Sample - 15-puzzle       Unknown Java Problem

The container 'Android Dependencies' references non existing library 'C:andcvOpenCV-2.4.2-android-sdksdkjavabinopencv library - 2.4.2.jar'    OpenCV Sample - 15-puzzle       Build path  Build Path Problem

Unable to resolve target 'android-11'   OpenCV Sample - 15-puzzle       Unknown Android Target Problem

The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project    OpenCV Library - 2.4.2      Unknown Java Problem

我使用的是最新的Android SDK,其中包括重要的Android SDK组件和带有内置ADT的Eclipse IDE版本
如何修复此错误?谢谢

您需要通过Android SDK Manager安装API11和API9(然后关闭/重新打开Eclipse)。API9已被弃用,因此要查看它以供下载,您必须在窗口底部标记"Obsolete"复选标记。

要解决"无法解决目标‘android-11’OpenCV Sample-15谜题"错误,您只需要:1.右键单击您的项目>属性>Android2.然后在那里选择目标名称。请记住,API不能少于所需。

对于另一个问题,我仍在寻找解决方案。我也有同样的问题。

相关内容

  • 没有找到相关文章

最新更新