0

我是 Android 世界的新手,将在其中使用 OpenCV 库。我从 source-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:\andcv\OpenCV-2.4.2-android-sdk\sdk\java\bin\opencv 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 版本。
我该如何解决这个错误?谢谢。

4

2 回答 2

0

To solve the "Unable to resolve target 'android-11' OpenCV Sample - 15-puzzle" error, you just have to: 1. right click on your project > Properties > Android 2. then choose the target name there. remember that the API's cannot be less than what needed.

For the other problem, I am still on the lookout for a solution. I have the same problem.

于 2013-10-08T23:08:22.707 回答
0

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

于 2013-08-26T16:31:14.670 回答