mirror of
https://github.com/opencv/opencv.git
synced 2026-07-21 19:33:03 +04:00
Merge pull request #24622 from alexlyulkov:al/fixed-android-sample-img-save
Fixed problem with saving images in Android sample #24622 Fixes https://github.com/opencv/opencv/issues/24590 Current code for saving images in Android sample worked only on very old phones. Added support for modern Android versions. Required: - https://github.com/opencv/ci-gha-workflow/pull/127 - https://github.com/opencv-infrastructure/opencv-gha-dockerfile/pull/27
This commit is contained in:
@@ -16,7 +16,7 @@ endif()
|
||||
set(GRADLE_VERSION "7.6.3" CACHE STRING "Gradle version")
|
||||
message(STATUS "Gradle version: ${GRADLE_VERSION}")
|
||||
|
||||
set(ANDROID_COMPILE_SDK_VERSION "26" CACHE STRING "Android compileSdkVersion")
|
||||
set(ANDROID_COMPILE_SDK_VERSION "31" CACHE STRING "Android compileSdkVersion")
|
||||
if(ANDROID_NATIVE_API_LEVEL GREATER 21)
|
||||
set(ANDROID_MIN_SDK_VERSION "${ANDROID_NATIVE_API_LEVEL}" CACHE STRING "Android minSdkVersion")
|
||||
else()
|
||||
|
||||
Reference in New Issue
Block a user