flutter-google-api-availability
                                
                                 flutter-google-api-availability copied to clipboard
                                
                                    flutter-google-api-availability copied to clipboard
                            
                            
                            
                        [Bug]: MissingPluginException on Flutter 3.19.6
Please check the following before submitting a new issue.
- [X] I have searched the existing issues.
- [X] I have carefully read the documentation and verified I have added the required platform specific configuration.
Steps to reproduce
paste the code given below
Expected results
it checks for availability
Actual results
it fails with error
Code sample
Code sample
if (Platform.isAndroid) {
      GooglePlayServicesAvailability availability =
          await GoogleApiAvailability.instance.checkGooglePlayServicesAvailability();
      log.d(availability.value);
    }
Screenshots or video
Screenshots or video demonstration
Version
5.0.0
Flutter Doctor output
Doctor output
[✓] Flutter (Channel stable, 3.19.6, on macOS 13.0.1 22A400 darwin-arm64, locale ru-RU)
    • Flutter version 3.19.6 on channel stable at /Users/svmolchan1/fvm/versions/stable
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 54e66469a9 (2 weeks ago), 2024-04-17 13:08:03 -0700
    • Engine revision c4cd48e186
    • Dart version 3.3.4
    • DevTools version 2.31.1
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/svmolchan1/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
    • 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.14.3
[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2023.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 17.0.9+0-17.0.9b1087.7-11185874)
[✓] VS Code (version 1.88.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.86.0
[✓] Connected device (3 available)
    • M2101K9AG (mobile) • cc706425 • android-arm64  • Android 13 (API 33)
    • macOS (desktop)    • macos    • darwin-arm64   • macOS 13.0.1 22A400 darwin-arm64
    • Chrome (web)       • chrome   • web-javascript • Google Chrome 120.0.6099.216
[✓] Network resources
    • All expected network resources are available.
• No issues found!
Dear @subzero911,
Does flutter clean then flutter pub get do the trick?
Kind regards,