Skip to content

MissingPluginException #222

Closed
Closed
@johannphilippe

Description

@johannphilippe

Weird issue here. My app was working fine, using the flutter-pi version that uses flutter 2.8. I rebuilt it after changing just one small thing (not related at all to the bug). Then after uploading it to the raspberry, I get the following error when I use the getApplicationDocumentsDirectory from path_provider.

[ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: MissingPluginException(No implementation found for method getApplicationDocumentsDirectory on channel plugins.flutter.io/path_provider)
#0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:175)
<asynchronous suspension>
#1      getApplicationDocumentsDirectory (package:path_provider/path_provider.dart:115)
<asynchronous suspension>
#2      _MyHomePageState.build.<anonymous closure> (package:flutter_csound/main.dart:598)
<asynchronous suspension>

Though, all other packages and plugins are working fine here. Just this one seems to miss. I tried a few things, rebuild with the last version (target flutter 2.10, dart 2.16), and this bug remains.
Any idea ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions