Issues in Manual OpenCV4Android SDK setup

asked 2014-04-24 09:37:32 -0600

abhishek gravatar image

After the import step on this page: http://docs.opencv.org/doc/tutorials/introduction/android_binary_package/O4A_SDK.html#import-opencv-library-and-samples-to-the-eclipse

I keep getting the following errors like in a popup in Eclipse:

Building workspace:
Errors occurred during the build.
Errors running builder 'Android Resource Manager' on project 'OpenCV Library - @OPENCV_VERSION@'.
java.lang.NullPointerException
Errors running builder 'Android Resource Manager' on project 'OpenCV Sample - 15 puzzle'.
java.lang.NullPointerException
Errors running builder 'Android Resource Manager' on project 'OpenCV Sample - camera-calibration'.
java.lang.NullPointerException

Cleaning all projects:
Errors occurred during the build.
Errors running builder 'Android Package Builder' on project 'OpenCV Library - @OPENCV_VERSION@'.
Resource '/OpenCV Library - @OPENCV_VERSION@/bin' does not exist.
Resource '/OpenCV Library - @OPENCV_VERSION@/bin' does not exist.

I followed the warning and note given at the bottom as well, but that did help.

My OpenCV4Android SDK version is 2.4.9.

edit retag flag offensive close merge delete

Comments

I am having the same problem. I've imported 2.4.9. and get this for all samples and library projects. Can anyone explain this?

prometheus3k gravatar imageprometheus3k ( 2014-04-25 08:38:04 -0600 )edit

Hey prometheus3k I switched to 2.4.8 and it worked. I also had to declare NDKROOT for all native projects. I'll wait for a more sensible answer for a few days and then close it out.

abhishek gravatar imageabhishek ( 2014-04-25 08:49:45 -0600 )edit

hi! How i can switch to 2.4.8?! (I also have the same problem)

comebus gravatar imagecomebus ( 2014-09-09 11:31:33 -0600 )edit