I have created react native project using create-react-native-app
I can see that there is a sdkVersion
property in app.json
, but I want to specify minSdkVersion
for the app.
How do I specify the minSdkVersion
in react native project?
You can change it from app/build.gradle
directly
Open the project go to the android/app
folder and open build.gradle
file.
In this you can find
defaultConfig {
applicationId "PACKAGE_ID"
minSdkVersion 16
targetSdkVersion 27
versionCode 1
versionName "1.0"
multiDexEnabled true
ndk {
abiFilters "armeabi-v7a", "x86"
}
}
change this minSdkVersion 16
according to your requirement
I have these settings in the android\build.gradle file as per below...
buildscript {
ext {
supportLibVersion = "28.0.0"
buildToolsVersion = "28.0.3"
minSdkVersion = 23
compileSdkVersion = 28
targetSdkVersion = 28
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With