Open the Android.mk of the project that uses initDebug() and add two lines between "include $(CLEAR_VARS)" and "include ../../sdk/native/jni/OpenCV.mk": include$(CLEAR_VARS)