Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

stripe_android:compileDebugKotlin when try to run after add flutter_stripe package

I want to use google pay in my flutter app i decide to use flutter_stripe package for add google pay integration

when i add package and run app it throw mw error like below

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':stripe_android:compileDebugKotlin'.
> Compilation error. See log for more details

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 21s
Exception: Gradle task assembleDebug failed with exit code 1

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

seems like you don’t follow documentation given by flutter_stripe:

Here is some requirements to integrate flutter stripe :-

Android 5.0 (API level 21) and above

Kotlin version 1.5.0 and above: example

Using a descendant of Theme.AppCompat for your activity: example, example night theme

Using an up-to-date Android gradle build tools version: example and an up-to-date gradle version accordingly

Using FlutterFragmentActivity instead of FlutterActivity in MainActivity.kt: example

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading