'How to increase Android project’s minSdk version in EXPO project?
There is a way of increasing the minSdk version of an Android build in an EXPO managed project?
I am using a custom-dev-client with native code. When I run the command for creating a build in Android I got next error: Manifest merger failed : uses-sdk:minSdkVersion 21 cannot be smaller than version 24 declared in library [com.squareup.sdk.in-app-payments:buyer-verification:1.5.4]
Any help will be appreciated a lot.
Thanks
Solution 1:[1]
In the root android/build.gradle there should be a setting:
buildscript {
ext {
buildToolsVersion = "30.0.2"
minSdkVersion = 24
compileSdkVersion = 30
targetSdkVersion = 30
ndkVersion = "21.4.7075529"
}
repositories {
google()
mavenCentral()
}
dependencies {
classpath("com.android.tools.build:gradle:4.2.2")
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
You should be able to increase/decrease the version there. When you build it'll take this and update the minSdkVersion for the whole application, including your manifest so no need to change anywhere else explicitly.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Scott |
