fix: Set minSdkVersion to 23 (#1911)

* fix: Set `minSdkVersion` to 21

* sorry I meant 23
This commit is contained in:
Marc Rousavy 2023-10-03 13:52:42 +02:00 committed by GitHub
parent 8d90dcc476
commit 324e269173
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -82,12 +82,12 @@ If you're experiencing build issues or runtime issues in VisionCamera, make sure
yarn # or `npm i` yarn # or `npm i`
``` ```
4. Make sure you have installed the [Android NDK](https://developer.android.com/ndk). 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` 1. Open your `build.gradle`
2. Set `buildToolsVersion` to `33.0.0` or higher 2. Set `buildToolsVersion` to `33.0.0` or higher
3. Set `compileSdkVersion` to `33` or higher 3. Set `compileSdkVersion` to `33` or higher
4. Set `targetSdkVersion` 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 6. Set `ndkVersion` to `"23.1.7779620"` or higher
7. Update the Gradle Build-Tools version to `7.3.1` or higher: 7. Update the Gradle Build-Tools version to `7.3.1` or higher:
``` ```

View File

@ -90,7 +90,7 @@ android {
} }
defaultConfig { defaultConfig {
minSdkVersion safeExtGet('minSdkVersion', 26) minSdkVersion safeExtGet('minSdkVersion', 23)
compileSdkVersion safeExtGet('compileSdkVersion', 33) compileSdkVersion safeExtGet('compileSdkVersion', 33)
targetSdkVersion safeExtGet('targetSdkVersion', 33) targetSdkVersion safeExtGet('targetSdkVersion', 33)
versionCode 1 versionCode 1

View File

@ -3,7 +3,7 @@
buildscript { buildscript {
ext { ext {
buildToolsVersion = "33.0.0" buildToolsVersion = "33.0.0"
minSdkVersion = 26 minSdkVersion = 23
compileSdkVersion = 33 compileSdkVersion = 33
targetSdkVersion = 33 targetSdkVersion = 33
ndkVersion = "23.1.7779620" ndkVersion = "23.1.7779620"