FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:preDebugBuild'.
> Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
   > Could not resolve project :shared_preferences_macos.
     Required by:
         project :app > project :flutter > project :shared_preferences
      > Unable to find a matching configuration of project :shared_preferences_macos:
          - None of the consumable configurations have attributes.
   > Could not resolve project :shared_preferences_web.
     Required by:
         project :app > project :flutter > project :shared_preferences
      > Unable to find a matching configuration of project :shared_preferences_web:
          - None of the consumable configurations have attributes.
   > Could not resolve project :path_provider_macos.
     Required by:
         project :app > project :flutter > 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 :app > project :flutter > 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 0s
报以上类似错误解决办法:

第一步:找到冲突包右键打开文件所在目录 Flutter Could not determine the dependencies of task ‘:path_provider:compileDebugAidl‘.报错记录

第二步:删掉报错的文件(如果不想找直接全部删掉也行) 然后重新 flutter pub get 如果不想敲命令直接 点击 yaml 文件上的 packages get  按钮Flutter Could not determine the dependencies of task ‘:path_provider:compileDebugAidl‘.报错记录Flutter Could not determine the dependencies of task ‘:path_provider:compileDebugAidl‘.报错记录

相关文章:

  • 2021-06-10
  • 2021-04-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-13
  • 2022-12-23
  • 2022-03-01
猜你喜欢
  • 2022-12-23
  • 2021-11-03
  • 2021-09-21
  • 2021-08-09
  • 2022-12-23
  • 2021-08-31
  • 2022-12-23
相关资源
相似解决方案