diff --git a/android/package/CMakeLists.txt b/android/package/CMakeLists.txt index 35025b3e8f..0837d5ca64 100644 --- a/android/package/CMakeLists.txt +++ b/android/package/CMakeLists.txt @@ -85,7 +85,7 @@ add_custom_command( COMMAND ${ANT_EXECUTABLE} -q -noinput -k release COMMAND ${CMAKE_COMMAND} -E touch "${APK_NAME}" WORKING_DIRECTORY "${PACKAGE_DIR}" - MAIN_DEPENDENCY "${opencv_java_location}" + MAIN_DEPENDENCY "${OpenCV_BINARY_DIR}/bin/.classes.jar.dephelper" DEPENDS "${PACKAGE_DIR}/${ANDROID_MANIFEST_FILE}" "${PACKAGE_DIR}/res/values/strings.xml" "${PACKAGE_DIR}/res/drawable/icon.png" ${camera_wrappers} )