码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2020-05-23 12:57:47      阅读:262      评论:0      收藏:0      [点我收藏+]

标签:fail   depend   ati   option   rmi   存储   adl   one   去掉   

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

标签:fail   depend   ati   option   rmi   存储   adl   one   去掉   

原文地址:https://www.cnblogs.com/SnailMove/p/12941988.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!