Baseflow / flutter-google-api-availability

Check the availability of Google Play services on the current device
https://baseflow.com
MIT License
34 stars 27 forks source link

[Bug]: MissingPluginException on Flutter 3.19.6 #49

Open subzero911 opened 4 months ago

subzero911 commented 4 months ago

Please check the following before submitting a new issue.

Steps to reproduce

paste the code given below

Expected results

it checks for availability

Actual results

it fails with error

Code sample

Code sample ```dart if (Platform.isAndroid) { GooglePlayServicesAvailability availability = await GoogleApiAvailability.instance.checkGooglePlayServicesAvailability(); log.d(availability.value); } ```

Screenshots or video

Screenshots or video demonstration image

Version

5.0.0

Flutter Doctor output

Doctor output ```console [✓] 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! ```
TimHoogstrate commented 1 month ago

Dear @subzero911,

Does flutter clean then flutter pub get do the trick?

Kind regards,