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
CodePudding user response:
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