Closed hed5meg closed 1 year ago
Can you post the full stacktrace and the Flutter part to reproduce it?
I am having the exact same issue only on Android !
This is still an issue on flutter_stripe
version 9.4.0.
flutter doctor -v
[✓] Flutter (Channel stable, 3.13.6, on macOS 13.4.1 22F770820d darwin-arm64, locale en-US)
• Flutter version 3.13.6 on channel stable at /Users/tomreis/Development/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision ead455963c (7 days ago), 2023-09-26 18:28:17 -0700
• Engine revision a794cf2681
• Dart version 3.1.3
• DevTools version 2.25.0
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
• Android SDK at /Users/tomreis/Library/Android/sdk
• Platform android-33, build-tools 33.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 14E300c
• CocoaPods version 1.12.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2021.2)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
[✓] VS Code (version 1.82.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.74.0
[✓] Connected device (3 available)
• iPhone 14 Pro Max (mobile) • DFCFDF74-871D-4415-B150-98FF70E8EC91 • ios •
com.apple.CoreSimulator.SimRuntime.iOS-16-4 (simulator)
• macOS (desktop) • macos • darwin-arm64 • macOS 13.4.1 22F770820d darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 117.0.5938.132
[✓] Network resources
• All expected network resources are available.
• No issues found!
I'll provide more information as I receive it. This is all we have at the moment:
MissingPluginException: MissingPluginException(No implementation found for method onPlaceholderChanged on channel flutter.stripe/card_field/5)
_invokeMethod(flutter/src/services/platform_channel.dart:308)
I can't reproduce in an android sim or on a device in debug mode, but the error is reported from production every few days.
we really cannot do anything without a proper stack trace and reproduction scenarios unfortunately
Here is a stack trace on a Samsung Galaxy S23 Ultraphone
Everything works fine for me on my physical Android device with my production build, but I saw a crash report from a user and I can't figure out why or how to reproduce.
MissingPluginException(No implementation found for method onPlaceholderChanged on channel flutter.stripe/card_field/1)
I can trigger the onPlaceholderChanged invocation in the emulator, but it the method exists for me and is called fine.
I have checked all my styles.xml files as my best guess was that the device in production was running in dark mode or something, there are 3 of them (pasted below). All of them use Theme.MaterialComponents.DayNight
v31/styles/xml
night-v31/styles.xml
values/styles.xml
Versions
flutter_stripe-7.0.0 ext.kotlin_version = '1.7.0'
MainActivity
Crash occurred on:
Google Pixel 7 API 33
Exception:
MissingPluginException(No implementation found for method onPlaceholderChanged on channel flutter.stripe/card_field/1)
When the exception was thrown, this was the stack: 0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:313:0)
Flutter Doctor
[✓] Flutter (Channel stable, 3.7.6, on macOS 12.6 21G115 darwin-x64, locale en-US) • Flutter version 3.7.6 on channel stable • Upstream repository https://github.com/flutter/flutter.git • Framework revision 12cb4eb7a0 (3 weeks ago), 2023-03-01 10:29:26 -0800 • Engine revision ada363ee93 • Dart version 2.19.3 • DevTools version 2.20.1
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0) • Android SDK • Platform android-33, build-tools 33.0.0 • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840) • All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 14.2) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 14C18 • CocoaPods version 1.12.0
[✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2021.2) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.12+0-b1504.28-7817840)
[✓] Connected device (4 available) • sdk gphone64 x86 64 (mobile) • emulator-5554 • android-x64 • Android 13 (API 33) (emulator) • iphone 13 mini (mobile) • DA99FB56-06D7-4C52-8CF4-DF4BE260EF56 • ios • com.apple.CoreSimulator.SimRuntime.iOS-16-2 (simulator) • macOS (desktop) • macos • darwin-x64 • macOS 12.6 21G115 darwin-x64 • Chrome (web) • chrome • web-javascript • Google Chrome 111.0.5563.110
[✓] HTTP Host Availability • All required HTTP hosts are available
• No issues found! Process finished with exit code 0