deven98 / shake

A flutter package for detecting phone shakes.
BSD 2-Clause "Simplified" License
95 stars 63 forks source link

MissingPluginException(No implementation found for method setAccelerationSamplingPeriod on channel dev.fluttercommunity.plus/sensors/method) #31

Open cungtrang0978 opened 9 months ago

cungtrang0978 commented 9 months ago

I am having this issue when open app:

MissingPluginException(No implementation found for method setAccelerationSamplingPeriod on channel dev.fluttercommunity.plus/sensors/method)

[✓] Flutter (Channel stable, 3.16.5, on macOS 13.4 22F66 darwin-x64, locale en)
    • Flutter version 3.16.5 on channel stable at /Users/thangnv/fvm/versions/3.16.5
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 78666c8dc5 (2 weeks ago), 2023-12-19 16:14:14 -0800
    • Engine revision 3f3e560236
    • Dart version 3.2.3
    • DevTools version 2.28.4

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0-rc2)
    • Android SDK at /Users/thangnv/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0-rc2
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
    • 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 2022.3)
    • 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.6+0-17.0.6b829.9-10027231)

[✓] IntelliJ IDEA Ultimate Edition (version 2023.1.1)
    • IntelliJ at /Applications/IntelliJ IDEA.app
    • 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

[✓] Connected device (3 available)
    • Pixel 6 (mobile) • 22171FDF6000TB • android-arm64  • Android 13 (API 33)
    • macOS (desktop)  • macos          • darwin-x64     • macOS 13.4 22F66 darwin-x64
    • Chrome (web)     • chrome         • web-javascript • Google Chrome 120.0.6099.129

[✓] Network resources
    • All expected network resources are available.
idrish-rishabhsoft commented 9 months ago

Facing same issue.

mincoln419 commented 9 months ago

So am I... , I wonder.. that it is related to this issue.. https://github.com/flutter/flutter/issues/10912 Please find why the issue is occured.. Thanks.

justinschier commented 8 months ago

I am also seeing this issue. Please, if you can update this package it would be very helpful. There are already open pull requests waiting for approval to update it from generous members of the community.

AlexSeednov commented 8 months ago

Hi!

Same issue.. Any solutions?

sasam0502 commented 7 months ago

Same issue here

scribetw commented 7 months ago

The problem was the transitive dependency sensors_plus_platform_interface ^1.1.2 released 1.2.0 a few months ago, which expects an up-to-date sensors_plus dependency.

You can apply a dependency_overrides in your pubspec.yaml as a temporary workaround:

dependency_overrides:
  sensors_plus_platform_interface: '1.1.3'
c0c4i commented 5 months ago

Thank you for the workaround, can be fixed in the next release?