Could not determine the dependencies of task ':shared_preferences:compileDebugAidl

Posted snailmove

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Could not determine the dependencies of task ':shared_preferences:compileDebugAidl相关的知识,希望对你有一定的参考价值。

Flutter 项目引入本地存储库出现如下问题

AILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ‘:shared_preferences:compileDebugAidl‘.
> Could not resolve all task dependencies for configuration ‘:shared_preferences:debugCompileClasspath‘.
   > Could not resolve project :shared_preferences_macos.
     Required by:
         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 :shared_preferences
      > Unable to find a matching configuration of project :shared_preferences_web:
          - 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 866ms
Gradle task assembleDebug failed with exit code 1

解决方案
技术图片

将shared_preferences 版本换成0.5.3 并去掉版本号之前的^ 符号 不引用最新版本

以上是关于Could not determine the dependencies of task ':shared_preferences:compileDebugAidl的主要内容,如果未能解决你的问题,请参考以下文章

Could not reliably determine the server's fully qualified domain name

Could not reliably determine the server's fully qualified domain name

httpd: Could not reliably determine the server's fully

Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.

Could not determine the dependencies of task ':shared_preferences:compileDebugAidl

解决报错httpd: Could not reliably determine the server‘s fully qualified domain name