Skip to content

PlatformException(flutter_stripe initialization failed, The plugin failed to initialize: #572

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

Closed
pradeep14598 opened this issue Feb 4, 2022 · 1 comment
Labels
needs triage Needs triage

Comments

@pradeep14598
Copy link

pradeep14598 commented Feb 4, 2022

[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: PlatformException(flutter_stripe initialization failed, The plugin failed to initialize:
E/flutter (22171): Your theme isn't set to use Theme.AppCompat or Theme.MaterialComponents.
E/flutter (22171): Please check the README: https://github.com/flutter-stripe/flutter_stripe#android, null, null)
E/flutter (22171): #0 JSONMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:155:7)
E/flutter (22171): #1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:167:18)
E/flutter (22171):
E/flutter (22171): #2 MethodChannelStripe.initialise (package:stripe_platform_interface/src/method_channel_stripe.dart:43:5)
E/flutter (22171):
E/flutter (22171): #3 Stripe._initialise (package:flutter_stripe/src/stripe.dart:417:5)
E/flutter (22171):
E/flutter (22171): #4 main (package:customer/main.dart:28:3)
E/flutter (22171):
E/flutter (22171):

@pradeep14598 pradeep14598 added the needs triage Needs triage label Feb 4, 2022
@pradeep14598 pradeep14598 changed the title Cannot able to run my code with this line await Stripe.instance.applySettings(); PlatformException(flutter_stripe initialization failed, The plugin failed to initialize: Feb 4, 2022
@remonh87
Copy link
Member

remonh87 commented Feb 5, 2022

Please follow the instructions: https://github.com/flutter-stripe/flutter_stripe#android . Android is quite annoying to configure we will improve the documentation of it soon

@remonh87 remonh87 closed this as completed Feb 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage Needs triage
Projects
None yet
Development

No branches or pull requests

2 participants