tipsi / tipsi-stripe

React Native Stripe binding for iOS/Android platforms
MIT License
1.14k stars 527 forks source link

Task :tipsi-stripe:processDebugAndroidTestManifest FAILED #826

Closed rutvikER1999 closed 2 years ago

rutvikER1999 commented 2 years ago

Before I have submitted the issue

[ ] I have read an installation guide
[ ] I know that for an iOS I need to install pods because I've read the installation guide
[ ] I have read a linking guide and checked that everything is OK like in manual linking guide
[ ] I know that before using tipsi-stripe I need to set options for my app as described in usage guide

The problem

hello, i have completed "detox" automated testing setup and trying to make build using "cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd .." command but getting following error

Task :tipsi-stripe:processDebugAndroidTestManifest FAILED D:\Projects\react-native\app3\callboats-mobile-app\app-client-mobile\node_modules\tipsi-stripe\android\build\intermediates\tmp\manifest\androidTest\debug\manifestMerger6347168199338246734.xml:5:5-74 Error: uses-sdk:minSdkVersion 19 cannot be smaller than version 21 declared in library [com.stripe:stripe-android:16.10.0] C:\Users\pcs44.gradle\caches\transforms-2\files-2.1\733c7fb78c246da430f66ad8d6f05501\jetified-stripe-android-16.10.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.stripe.android.payments" to force usage (may lead to runtime failures)

See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.

FAILURE: Build failed with an exception.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/6.2/userguide/command_line_interface.html#sec:command_line_warnings

Environment

Links to logs and sources

Create a GIST which is a paste of your full logs or sources, and link them here. If you are reporting a bug, always include build or error logs!

everything you need

all logs, manifest, gradle file mention above

all files have included in link provided above...

Screenshots, GIFs (Must to have)

Just drag-and-drop them to this textarea

Code To Reproduce Issue (Good To Have)

Please remember that with sample code it's easier to reproduce the bug and it's much faster to fix it.

amitdadon commented 2 years ago

this project is using minsdk=16 (app/build.gradle), and your project requires at least 21. since this repo is no longer maintained, it is recommended to move to the official stripe sdk (as mentioned here). another option is to patch the build.gradle and replace the minsdk to 21 (but patching is generally not a good habit)