From 324e2691731d0859e4f3e2912b1921f267cb7248 Mon Sep 17 00:00:00 2001 From: Marc Rousavy Date: Tue, 3 Oct 2023 13:52:42 +0200 Subject: [PATCH] fix: Set `minSdkVersion` to 23 (#1911) * fix: Set `minSdkVersion` to 21 * sorry I meant 23 --- docs/docs/guides/TROUBLESHOOTING.mdx | 4 ++-- package/android/build.gradle | 2 +- package/example/android/build.gradle | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/docs/guides/TROUBLESHOOTING.mdx b/docs/docs/guides/TROUBLESHOOTING.mdx index 5473e27..edb2cd7 100644 --- a/docs/docs/guides/TROUBLESHOOTING.mdx +++ b/docs/docs/guides/TROUBLESHOOTING.mdx @@ -82,12 +82,12 @@ If you're experiencing build issues or runtime issues in VisionCamera, make sure yarn # or `npm i` ``` 4. Make sure you have installed the [Android NDK](https://developer.android.com/ndk). -5. Make sure your minimum SDK version is **26 or higher**, and target SDK version is **33 or higher**. See [the example's `build.gradle`](https://github.com/mrousavy/react-native-vision-camera/blob/main/package/example/android/build.gradle#L5-L10) for reference. +5. Make sure your minimum SDK version is **23 or higher**, and target SDK version is **33 or higher**. See [the example's `build.gradle`](https://github.com/mrousavy/react-native-vision-camera/blob/main/package/example/android/build.gradle#L5-L10) for reference. 1. Open your `build.gradle` 2. Set `buildToolsVersion` to `33.0.0` or higher 3. Set `compileSdkVersion` to `33` or higher 4. Set `targetSdkVersion` to `33` or higher - 5. Set `minSdkVersion` to `26` or higher + 5. Set `minSdkVersion` to `23` or higher 6. Set `ndkVersion` to `"23.1.7779620"` or higher 7. Update the Gradle Build-Tools version to `7.3.1` or higher: ``` diff --git a/package/android/build.gradle b/package/android/build.gradle index 7aeb70d..c883b95 100644 --- a/package/android/build.gradle +++ b/package/android/build.gradle @@ -90,7 +90,7 @@ android { } defaultConfig { - minSdkVersion safeExtGet('minSdkVersion', 26) + minSdkVersion safeExtGet('minSdkVersion', 23) compileSdkVersion safeExtGet('compileSdkVersion', 33) targetSdkVersion safeExtGet('targetSdkVersion', 33) versionCode 1 diff --git a/package/example/android/build.gradle b/package/example/android/build.gradle index 2f7dbfb..ea8d239 100644 --- a/package/example/android/build.gradle +++ b/package/example/android/build.gradle @@ -3,7 +3,7 @@ buildscript { ext { buildToolsVersion = "33.0.0" - minSdkVersion = 26 + minSdkVersion = 23 compileSdkVersion = 33 targetSdkVersion = 33 ndkVersion = "23.1.7779620"