简体   繁体   English

Flutter path_provider 错误 - 无法解析项目:path_provider_linux

[英]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
  • Go to your Flutter sdk folder. Go 到您的 Flutter sdk 文件夹。
  • Go to [.pub-cache\hosted\pub.dartlang.org\ or.pub-cache\hosted\pub.flutter-io.cn\ ] Go 到 [.pub-cache\hosted\pub.dartlang.org\ or.pub-cache\hosted\pub.flutter-io.cn\ ]
  • Remove all path_provider folders.删除所有 path_provider 文件夹。
  • Pub get酒吧得到
  • Run your app.运行您的应用程序。

I hope this fix your problem!我希望这能解决你的问题!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Flutter:无法解析配置“:path_provider:classpath”的所有工件 - Flutter: Could not resolve all artifacts for configuration ':path_provider:classpath' 在 flutter 中使用 path_provider package 时出错 - Error using path_provider package in flutter Flutter的'path_provider'依赖项中的未定义类 - Undefined class in 'path_provider' dependency for Flutter Flutter path_provider 在 Android 上出现错误,而在 iOS 上完美运行 - Flutter path_provider error on Android, while on iOS works perfectly 无法在颤振中使用 path_provider - unable to use path_provider in flutter 包含path_provider时出错 - Error when include path_provider Gradle构建无法解析所有Path_provider依赖项 - Gradle build can not resolve all Path_provider dependencies FAILURE:配置项目“:path_provider”时出现问题 - FAILURE: A problem occurred configuring project ':path_provider' Flutter:在通道插件上找不到方法 getApplicationDocumentsDirectory 的实现。flutter.io/path_provider - Flutter: No implementation found for method getApplicationDocumentsDirectory on channel plugins.flutter.io/path_provider MissingPluginException(在通道 plugins.flutter.io/path_provider 上找不到方法 getApplicationDocumentsDirectory 的实现) - MissingPluginException(No implementation found for method getApplicationDocumentsDirectory on channel plugins.flutter.io/path_provider)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM