zoukankan      html  css  js  c++  java
  • 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 并去掉版本号之前的^ 符号 不引用最新版本

  • 相关阅读:
    python操作Redis详解
    python操作SQLAlchemy
    设计模式详解及Python实现
    计算机基础
    DRF内置过滤组件与排序组件结合使用
    LTE
    LTE
    LTE
    LTE
    LTE
  • 原文地址:https://www.cnblogs.com/SnailMove/p/12941988.html
Copyright © 2011-2022 走看看