[英]Flutter path_provider Error - Could not resolve project :path_provider_linux
I have implemented various methods but errors appear every time I run android.我已经实现了各种方法,但是每次运行 android 时都会出现错误。 If you delete the path_provier_macos folder, a linux error appears.如果删除 path_provier_macos 文件夹,则会出现 linux 错误。 You are currently using path_provier: ^1.6.11.您当前正在使用 path_provier:^1.6.11。 Lowering the path_provier version is the same.降低 path_provier 版本也是一样的。 Please tell me the solution.请告诉我解决方案。
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Running Gradle task 'assembleDebug'...
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.
> Could not resolve project :path_provider_linux.
Required by:
project :path_provider
> Unable to find a matching configuration of project :path_provider_linux:
- 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 more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 12s
Finished with error: Gradle task assembleDebug failed with exit code 1
I hope this fix your problem!我希望这能解决你的问题!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.