1

我已经尝试并用尽了几乎所有的技巧,并在互联网上努力在我的 eclipse 中安装 openCV for android,其中安装了更新的 ADT 和 CDT,我尝试在导入库和示例之前删除 .settings 文件夹。

我将 android 版本 4.0.3 包含在示例构建中,但我认为这没有任何问题。

这是我收到的错误的摘要(以下许多错误在错误控制台中重复显示(在不同的行),我只列出一次!)

  Description   Resource    Path    Location    Type
  OpenCVEngineInterface cannot be resolved  AsyncServiceHelper.java /OpenCV Library - 
  2.4.6/src/org/opencv/android  line 160    Java Problem

  Description   Resource    Path    Location    Type
  OpenCVEngineInterface cannot be resolved to a type    AsyncServiceHelper.java 
 /OpenCV Library - 2.4.6/src/org/opencv/android line 160    Java Problem

  Description   Resource    Path    Location    Type
  R cannot be resolved to a variable    CameraBridgeViewBase.java   /OpenCV 
  Library - 2.4.6/src/org/opencv/android    line 72 Java Problem

  Description   Resource    Path    Location    Type
  The container 'Android Dependencies' references non existing library
     'C:\Work\OpenCV4Android\OpenCV-2.4.6-android-sdk\sdk\java\bin\opencv library -
  2.4.6.jar'    OpenCV Sample - 15 puzzle       Build path  Build Path
   Problem

  Description   Resource    Path    Location    Type
  The import org.opencv.engine.OpenCVEngineInterface cannot be resolved
AsyncServiceHelper.java /OpenCV Library - 2.4.6/src/org/opencv/android  line 7  
  Java Problem

  Description   Resource    Path    Location    Type
  The import org.opencv.R cannot be resolved    CameraBridgeViewBase.java   
  /OpenCV Library - 2.4.6/src/org/opencv/android    line 5  Java Problem

  Description   Resource    Path    Location    Type
  Unable to resolve target 'android-11' OpenCV Sample - 15 puzzle   
Unknown Android Target Problem

现在我不在乎 IDE 提出的 7 个警告!

更新!

一旦我下载了 Android 3.0(11 级),所有的错误都消失了!但是后来我开发的不是平板蜂窝设备,而是我正在为果冻豆 4.1.2 手机开发的蜂窝设备!,该怎么办?

4

0 回答 0