使用path_provider时,运行时可能遇到以下错误
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':path_provider:compileDebugAidl'.
> Could not resolve all task dependencies for configuration ':path_provider:debugCompileClasspath'.
> Could not resolve project :path_provider_macos.
Required by:
project :path_provider
> Unable to find a matching configuration of project :path_provider_macos:
- None of the consumable configurations have attributes.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get

本文解决使用path_provider包时出现的构建失败问题,提供两种方法:删除特定文件夹或重装FlutterSDK。
最低0.47元/天 解锁文章
1303





