Your theme isn't set to use Theme.AppCompat or Theme.MaterialComponents. #1328
Replies: 1 comment 1 reply
-
In MainActivity.kt file i have change this to this now that error was gone and getting new error how to fix it now
|
Beta Was this translation helpful? Give feedback.
-
Describe the bug
When I try to make payment using Stripe i got to see these errors the payment intent was created but this problem occurs when we try to make payment
PlatformException(flutter_stripe initialization failed, The plugin failed to initialize:
I/flutter ( 5596): Your Main Activity class com.example.new_user_side.MainActivity is not a subclass FlutterFragmentActivity.
I/flutter ( 5596): Please make sure you follow all the steps detailed inside the README: https://github.com/flutter-stripe/flutter_stripe#android
I/flutter ( 5596): If you continue to have trouble, follow this discussion to get some support #538, null, null)
E/flutter ( 5596): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Exception: PlatformException(flutter_stripe initialization failed, The plugin failed to initialize:
MainActivity class code
package com.example.new_user_side import io.flutter.embedding.android.FlutterActivity class MainActivity: FlutterActivity() { }
AndroidMainfest.xml
build.gradle
I am using
flutter_stripe: ^9.2.0
Beta Was this translation helpful? Give feedback.
All reactions