You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm encountering an issue with Stripe initialization on Android. The app works fine on iOS, but on Android, I'm getting the following error:
PlatformException(flutter_stripe initialization failed, The plugin failed to initialize:
Your theme isn't set to use Theme.AppCompat or Theme.MaterialComponents.
Please make sure you follow all the steps detailed inside the README: https://github.com/flutter-stripe/flutter_stripe#android
If you continue to have trouble, follow this discussion to get some support #538, null, null)
I've already tried the following:
Modified android/app/src/main/res/values/styles.xml to use Theme.MaterialComponents.Light.NoActionBar
Added com.google.android.material:material:1.5.0 to android/app/build.gradle
Cleaned and rebuilt the project
Verified AndroidManifest.xml is using @style/LaunchTheme
Updated Android Gradle plugin to 8.1.4 and compileSdkVersion to 34
Updated flutter_stripe to the latest version (11.0.0)
Despite these attempts, the issue persists. Could you please provide any additional guidance on resolving this theme-related initialization problem?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I'm encountering an issue with Stripe initialization on Android. The app works fine on iOS, but on Android, I'm getting the following error:
PlatformException(flutter_stripe initialization failed, The plugin failed to initialize:
Your theme isn't set to use Theme.AppCompat or Theme.MaterialComponents.
Please make sure you follow all the steps detailed inside the README: https://github.com/flutter-stripe/flutter_stripe#android
If you continue to have trouble, follow this discussion to get some support #538, null, null)
I've already tried the following:
android/app/src/main/res/values/styles.xml
to useTheme.MaterialComponents.Light.NoActionBar
com.google.android.material:material:1.5.0
toandroid/app/build.gradle
AndroidManifest.xml
is using@style/LaunchTheme
Despite these attempts, the issue persists. Could you please provide any additional guidance on resolving this theme-related initialization problem?
Thank you for your help!
Beta Was this translation helpful? Give feedback.
All reactions