Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Min SDK version issue #214

Closed
pateljaykesh opened this issue Sep 9, 2019 · 3 comments
Closed

Min SDK version issue #214

pateljaykesh opened this issue Sep 9, 2019 · 3 comments

Comments

@pateljaykesh
Copy link

hello

I am getting following error.

Manifest merger failed : uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [com.razorpay:checkout:1.5.2]

As we go with minsdk version 19 then app not working for older devices.

Kindly help on this.

Thanks

@venky2604
Copy link

venky2604 commented Sep 13, 2019

I had the same issue in rn 0.60.5. try https://stackoverflow.com/a/55324661

@SaravanakumarSubramanian

I have the same issue changing the minSDKVersion to 19 did not solve the issue for me

Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
/Users//android/app/src/debug/AndroidManifest.xml Error:
uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [:react-native-razorpay] /Users//node_modules/react-native-razorpay/android/build/intermediates/library_manifest/debug/AndroidManifest.xml as the library might be using APIs not available in 16
Suggestion: use a compatible library with a minSdk of at most 16,
or increase this project's minSdk version to at least 19,
or use tools:overrideLibrary="com.razorpay.rn" to force usage (may lead to runtime failures)

FAILURE: Build failed with an exception

Razorpay gradle

apply plugin: 'com.android.library'
repositories {
mavenCentral()
}
def safeExtGet(prop, fallback) {
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
}

android {
compileSdkVersion safeExtGet('compileSdkVersion', 28)

defaultConfig {
    minSdkVersion 19
    targetSdkVersion safeExtGet('targetSdkVersion', 28)
    versionCode 1
    versionName "1.0"
}

}

dependencies {
implementation 'com.facebook.react:react-native:+'
implementation 'com.razorpay:checkout:1.5.12'
}

@venky2604
Copy link

try changing minSdkVersion to 19 only in the outermost build.gradle. Do not change Razorpay gradle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants