Ask Your Question
2

Build Errors after OpenCV Library Import

asked 2012-11-15 05:34:14 -0500

seismic gravatar image

updated 2012-11-15 08:09:44 -0500

Andrey Pavlenko gravatar image

I use Win 8, jdk7, Eclipse 4.2, Andoird SDK (ADT) Rev 21, OpenCV 2.4.3, C/C++ Dev. Tools 8.1.1. Installed are all Android Targets since API Level 8. As described in: http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/android_dev_intro.html#android-dev-intro

After importing the library and sample projects from OpenCV Folder I receive following errors in the File OpenCVEngineInterface.java. Same happens to me in mac os. Has somebody an idea?

Description Resource    Path    Location    Type 
The method asBinder() of type OpenCVEngineInterface.Stub must override a superclass method  OpenCVEngineInterface.java  /OpenCV Library -
2.4.3/gen/org/opencv/engine line 35 Java Problem 
The method asBinder() of type OpenCVEngineInterface.Stub.Proxy must override a superclass method    OpenCVEngineInterface.java  /OpenCV Library -
            2.4.3/gen/org/opencv/engine line 96 Java Problem 
The method getEngineVersion() of type OpenCVEngineInterface.Stub.Proxy must override a superclass method    OpenCVEngineInterface.java  /OpenCV Library - 2.4.3/gen/org/opencv/engine   line 107    Java Problem 
    The method getLibPathByVersion(String) of type OpenCVEngineInterface.Stub.Proxy must override a superclass method   OpenCVEngineInterface.java  /OpenCV Library - 2.4.3/gen/org/opencv/engine   line 129    Java Problem 
    The method installVersion(String) of type OpenCVEngineInterface.Stub.Proxy must override a superclass method    OpenCVEngineInterface.java  /OpenCV Library - 2.4.3/gen/org/opencv/engine   line 152    Java Problem 
    The method getLibraryList(String) of type OpenCVEngineInterface.Stub.Proxy must override a superclass method    OpenCVEngineInterface.java  /OpenCV Library - 2.4.3/gen/org/opencv/engine   line 175    Java Problem
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
4

answered 2012-11-15 08:03:32 -0500

updated 2012-11-15 08:06:30 -0500

Andrey Pavlenko gravatar image

Looks like some incompatibilities in Eclipse project settings between different version of ADT plug-in. Remove .settings folder from <OpenCV-2.4.3-android-sdk>/sdk/java folder before export to Eclipse.

edit flag offensive delete link more

Comments

thats it! Thanks!

seismic gravatar imageseismic ( 2012-11-15 15:20:16 -0500 )edit

This worked for me as well. Thank you very much. The compiler compliance settings need to be 1.6. The old settings had them at 1.5.

Buddhisthead gravatar imageBuddhisthead ( 2012-11-15 15:47:12 -0500 )edit

It took me FOREVER to find out how to fix this... I wish when I downloaded the SDK today it didn't have the .settings folder.

Jdban gravatar imageJdban ( 2012-11-25 03:55:46 -0500 )edit
0

answered 2012-11-15 06:59:06 -0500

Andrey Pavlenko gravatar image

Looks like Google has changed something critical in the latest SDK/ADT r21. For now the only suggestion is to use older Android SDK and ADT plugin, e.g. for Windows you can download them of r20 from here: http://dl.google.com/android/android-sdk_r20-windows.zip http://dl.google.com/android/ADT-20.0.0.zip

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2012-11-15 05:34:14 -0500

Seen: 5,011 times

Last updated: Nov 15 '12