Ask Your Question
0

Errors when import OpenCV4Android SDK to Eclipse

asked 2013-02-19 05:01:33 -0600

s4eed gravatar image

updated 2013-02-21 02:24:53 -0600

Andrey Pavlenko gravatar image

I'm new to Android world and going to use OpenCV library in it. I downloaded Opencv4Android-SDK from source-forge and tried to import it in eclipse using package explorer using this tutorial. Every thing went OK but I encountered this error :

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

Im using latest Android SDK that includes the essential Android SDK components and a version of the Eclipse IDE with built-in ADT.
How can I fix this error? thanks.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-02-19 05:13:43 -0600

rics gravatar image

I think you have not installed the appropriate Android SDK platforms: 9 and 11 are referenced in the error message. This documentation describes how to set Android SDK properly with downloading more components.

However it is not necessary to download all the missing SDKs. You can modify the required target to your already installed one (at least target 8) in project.properties file of e.g. 15-puzzle's directory.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-02-19 05:01:33 -0600

Seen: 4,133 times

Last updated: Feb 21 '13