Skip to content

no handler found for channel plugins.flutter.io/shared_preferences #594

Open
@nmk0718

Description

@nmk0718

Flutter app run on MacOS
ERROR:
go-flutter: no handler found for channel plugins.flutter.io/shared_preferences

Hover doctor

➜hover doctor
hover: Hover version v0.46.3 running on darwin
hover: Sharing packaging tools
hover: darwin-bundle is supported
hover: darwin-dmg is supported
hover: darwin-pkg is supported
hover: 
hover: Sharing flutter version
Flutter 2.0.6 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 1d9032c7e1 (3 weeks ago) • 2021-04-29 17:37:58 -0700
Engine • revision 05e680e202
Tools • Dart 2.12.3
hover: Flutter engine commit: https://github.com/flutter/engine/commit/05e680e202af9a92461070cb2d9982acad46c83c
hover: ⚠ The go-flutter project tries to stay compatible with the beta channel of Flutter.
hover: ⚠     It's advised to use the beta channel: `flutter channel beta`
hover: Finding out the C compiler version
Apple clang version 12.0.0 (clang-1200.0.32.27)
Target: x86_64-apple-darwin19.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
hover: Sharing the content of go.mod
module github.com/nmk0718/memo/go

go 1.16

require (
        github.com/go-flutter-desktop/go-flutter v0.43.0
        github.com/pkg/errors v0.9.1
)
hover: Sharing the content of hover.yaml
application-name: ""
executable-name: ""
package-name: ""
organization-name: com.memos
license: ""
target: lib/main_desktop.dart
branch: ""
cache-path: ""
opengl: ""
engine-version: ""
hover: Sharing the content of go/cmd
go/cmd/main.go  go/cmd/options.go

Hover run log

➜ hover run                                                                                                  
hover: Using engine from cache
hover: Cleaning the build directory
hover: ⚠ The go-flutter project tries to stay compatible with the beta channel of Flutter.
hover: ⚠     It's advised to use the beta channel: `flutter channel beta`
hover: Bundling flutter app

💪 Building with sound null safety 💪

hover: Compiling 'go-flutter' and plugins
hover: Successfully compiled executable binary for darwin
hover: Build finished, starting app...
hover: Running memos in debug_unopt mode
go-flutter: WARNING error creating the resource window: VersionUnavailable: NSGL: Failed to create OpenGL context
[ERROR:flutter/shell/platform/embedder/embedder_surface_gl.cc(102)] Could not create a resource context for async texture uploads. Expect degraded performance. Set a valid make_resource_current callback on FlutterOpenGLRendererConfig.
[ERROR:flutter/shell/platform/embedder/embedder_surface_gl.cc(102)] Could not create a resource context for async texture uploads. Expect degraded performance. Set a valid make_resource_current callback on FlutterOpenGLRendererConfig.
flutter: Observatory listening on http://127.0.0.1:50300/
hover: Connecting hover to 'memos' for hot reload
go-flutter: no handler found for channel plugins.flutter.io/shared_preferences

Running in windows and web is normal

Flutter pub upgrade

flutter  pub upgrade
Resolving dependencies...
  shared_preferences 2.0.5
  shared_preferences_linux 2.0.0
  shared_preferences_macos 2.0.0
  shared_preferences_platform_interface 2.0.0
  shared_preferences_web 2.0.0
  shared_preferences_windows 2.0.0

But the package containing the MacOS is not shown
image

I need help

Metadata

Metadata

Assignees

No one assigned

    Labels

    pluginIssue about an existing or possible pluginquestionUser questions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions