Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MissingPluginException(No implementation found for method getAll on channel plugins.flutter.io/shared_preferences #130

Closed
SaulArriaga opened this issue Jan 20, 2023 · 7 comments

Comments

@SaulArriaga
Copy link

I am getting "(No implementation found for method getAll on channel plugins.flutter.io/shared_preferences" as trying to set any value by using

I have tried with:
dependency_overrides:
shared_preferences_ios: 2.1.1

but it doesn't work.

Flutter Doctor:

[✓] Flutter (Channel stable, 3.3.10, on macOS 13.0.1 22A400 darwin-arm, locale es-419)
• Flutter version 3.3.10 on channel stable at /Users/saul/development/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 135454af32 (5 weeks ago), 2022-12-15 07:36:55 -0800
• Engine revision 3316dd8728
• Dart version 2.18.6
• DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
• Android SDK at /Users/saul/Library/Android/sdk
• Platform android-33, build-tools 33.0.0
• Java binary at: /Library/Java/JavaVirtualMachines/jdk-11.0.17.jdk/Contents/Home/bin/java
• Java version Java(TM) SE Runtime Environment 18.9 (build 11.0.17+10-LTS-269)
• 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.11.3

[✓] 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.74.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.56.0

[✓] Connected device (3 available)
• iPad (mobile) • eef26d8e2a4a3dd159a4105b675bea927ab5300a • ios • iOS 12.5.5 16H62
• macOS (desktop) • macos • darwin-arm64 • macOS 13.0.1 22A400 darwin-arm
• Chrome (web) • chrome • web-javascript • Google Chrome 109.0.5414.87

[✓] HTTP Host Availability
• All required HTTP hosts are available

• No issues found!

@SchokoShake
Copy link

Having the same problem. Downgrading shared_preferences to 2.0.15 solved the problem for now. Newer versions of the shared_preferences rely on shared_preference_foundation instead of shared_preference_ios which dropped the getAll method. This change is not yet reflected for this plugin.

@mrqaidi
Copy link

mrqaidi commented Jan 21, 2023

me too having same issue

@mrqaidi
Copy link

mrqaidi commented Jan 21, 2023

workaround

dependency_overrides:
  shared_preferences : 2.0.15

thanks @SchokoShake

@SaulArriaga
Copy link
Author

Thanks @SchokoShake, downgrading to version 2.0.15 solved the problem.

@mrqaidi
Copy link

mrqaidi commented Jan 21, 2023

@SaulArriaga dont close issue please , this need to be fixed . workaround dont mean its fixed permanently

@stuartmorgan
Copy link

See flutter/flutter#118401 and #131

@Kurogoma4D
Copy link

I've confirmed it's working with flutter_foreground_task 4.0.1 with shared_preferences 2.0.17 , so it seems can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants