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
[path_provider] path_provider_android 2.0.10 throws MissingPluginException on older versions of Flutter #95706
Comments
same problem |
Hi @JamesKarl, Thanks for filing the issue. I ran the official sample code using Please share the output of flutter doctor -v
|
@maheshmnj Having the same issue: E/flutter (32229): [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)
E/flutter (32229): #0 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:154)
E/flutter (32229): <asynchronous suspension>
E/flutter (32229): #1 getApplicationDocumentsDirectory (package:path_provider/path_provider.dart:115)
E/flutter (32229): <asynchronous suspension>
E/flutter (32229): #2 HiveX.initFlutter (package:hive_flutter/src/hive_extensions.dart:12)
E/flutter (32229): <asynchronous suspension>
E/flutter (32229): #3 main (package:app/main.dart:28)
E/flutter (32229): <asynchronous suspension> It was building using the lastest dependency_overrides:
path_provider_android: 2.0.9 The plugin was trying to connect through |
What version of Flutter is everyone who is seeing this using? If it's 2.5 or earlier, that's a known bug in the update to the Android implementation. If it's 2.8, that's unexpected. |
@stuartmorgan only failing in version 2.5.3, this did not occur in the latest 2.8.1 |
Same problem here. The dependencie override suggested by @medyas worked but I wouldn't like to deploy a version with it. Will we be able to revert the change until today? Can I help with something? |
PR flutter#4617 added a dependency on Dart auto-registration, but forgot to bump the SDK requirement to 2.8 (where that feature was introduced for Android). In order to fix older versions, this restores the previous channel name so that the implementation here is compatible with the default method channel registration used by Flutter 2.5 and earlier. A follow-up will restore the package-specific channel name, but also change the SDK requirement to >=2.8. This must be published first so that the last published version that claims 2.5 compatibility actually works with 2.5. Fixes flutter/flutter#95706
PR flutter#4617 added a dependency on Dart auto-registration, but forgot to bump the SDK requirement to 2.8 (where that feature was introduced for Android). In order to fix older versions, this restores the previous channel name so that the implementation here is compatible with the default method channel registration used by Flutter 2.5 and earlier. A follow-up will restore the package-specific channel name, but also change the SDK requirement to >=2.8. This must be published first so that the last published version that claims 2.5 compatibility actually works with 2.5. Fixes flutter/flutter#95706
PR #4617 added a dependency on Dart auto-registration, but forgot to bump the SDK requirement to 2.8 (where that feature was introduced for Android). In order to fix older versions, this restores the previous channel name so that the implementation here is compatible with the default method channel registration used by Flutter 2.5 and earlier. A follow-up will restore the package-specific channel name, but also change the SDK requirement to >=2.8. This must be published first so that the last published version that claims 2.5 compatibility actually works with 2.5. Fixes flutter/flutter#95706
|
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
PR flutter#4617 added a dependency on Dart auto-registration, but forgot to bump the SDK requirement to 2.8 (where that feature was introduced for Android). In order to fix older versions, this restores the previous channel name so that the implementation here is compatible with the default method channel registration used by Flutter 2.5 and earlier. A follow-up will restore the package-specific channel name, but also change the SDK requirement to >=2.8. This must be published first so that the last published version that claims 2.5 compatibility actually works with 2.5. Fixes flutter/flutter#95706
The following code works well with path_provider 2.0.1. After upgrading to 2.0.8, it throws "MissingPluginException(No implementation found for method getApplicationDocumentsDirectory.
The text was updated successfully, but these errors were encountered: