path_provider,这个插件取目录怎么总是报错

MissingPluginException(No implementation found for method getApplicationDocumentsDirectory on channel plugins.flutter.io/path_provider

当使用path_provider插件的方法取目录时报错,有用到过的吗

执行getApplicationDocumentsDirectory方法会报错

flutter clean 就可以了