jonataslaw / get_storage

A fast, extra light and synchronous key-value storage to Get framework
MIT License
369 stars 83 forks source link

GetStorage.init Error #127

Closed renzp94 closed 1 year ago

renzp94 commented 1 year ago
void main() async {
  await GetStorage.init();
  runApp(const App());
}

Error: PlatformException (PlatformException(channel-error, Unable to establish connection on channel., null, null))

get_storage: ^2.1.1

flutter doctor

[✓] Flutter (Channel stable, 3.7.10, on macOS 13.3 22E252
    darwin-arm64, locale zh-Hans-CN)
[!] Android toolchain - develop for Android devices (Android SDK
    version 33.0.2)
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more
      details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK
      licenses.
      See
      https://flutter.dev/docs/get-started/install/macos#android-setup
      for more details.
[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.1)
[✓] VS Code (version 1.77.1)
[✓] Connected device (3 available)
[✓] HTTP Host Availability
renzp94 commented 1 year ago

I'll remove the app and reinstall it,It work.

palorotolo commented 1 year ago

I'll remove the app and reinstall it,It work.

not working