簡體   English   中英

Flutter path_provider 錯誤 - 無法解析項目:path_provider_linux

[英]Flutter path_provider Error - Could not resolve project :path_provider_linux

我已經實現了各種方法,但是每次運行 android 時都會出現錯誤。 如果刪除 path_provier_macos 文件夾,則會出現 linux 錯誤。 您當前正在使用 path_provier:^1.6.11。 降低 path_provier 版本也是一樣的。 請告訴我解決方案。

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 到您的 Flutter sdk 文件夾。
  • Go 到 [.pub-cache\hosted\pub.dartlang.org\ or.pub-cache\hosted\pub.flutter-io.cn\ ]
  • 刪除所有 path_provider 文件夾。
  • 酒吧得到
  • 運行您的應用程序。

我希望這能解決你的問題!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM