1
votes

I am using instamojo payment library in my project version 3.4.0 compile 'com.instamojo:android-sdk:3.4.0'

when i change min Sdk version from 21 to 19, it is showing me following error

things i have done change minSdkVersion 19 (in build.gradle app), then sync, then sync all project gradle files, rebuilt project invalid caches and restart

Any help will be valuable

Manifest merger failed : uses-sdk:minSdkVersion 19 cannot be smaller than version 21 declared in library [com.instamojo:android-sdk:3.4.0] C:\Users\Rushabh.gradle\caches\transforms-2\files-2.1\811256b860a0ca6a3de017f237334983\jetified-android-sdk-3.4.0\AndroidManifest.xml as the library might be using APIs not available in 19 Suggestion: use a compatible library with a minSdk of at most 19, or increase this project's minSdk version to at least 21, or use tools:overrideLibrary="com.instamojo.android" to force usage (may lead to runtime failures)

1
the error is pretty slef explanetory , you have to use the min api supported by the libraryhimel
as per github page github.com/Instamojo/instamojo-android-sdk library supports minimum sdk 15rushab

1 Answers

0
votes

as per the error the library is to minSDK 21 , so you have to use that as minSDK ,as for the particular librays docs please go through in detail , as per build file from github it can be seen minSDK is set as 21. see here in github of this build file from the library