Fair icon indicating copy to clipboard operation
Fair copied to clipboard

Fair 集成报错

Open le4 opened this issue 4 years ago • 1 comments

Attention

Issue用于问题跟踪,技术咨询/讨论,请移步至讨论组 Gitter

自查步骤(新手必读)

  1. 核对flutter版本与readme说明,确认该版本已被Fair支持
  2. 核查fair_version分支版本于flutter一致,且等同于第一步版本号
  3. 如果尚未看过文档,请先运行自带的sample,能跑起来再接入app
  4. 遇到编译错误,请查看终端日志,过滤fair关键词
  5. 到github提issue,或gitter。留档/解决,提供flutter环境信息flutter doctor --verbose

问题

fair: ^2.0.0 使用这个引入fair 提示 depends on fair ^2.0.0 which doesn't match any versions, version solving failed.

环境信息

执行下面的语句,并粘贴结果

flutter doctor --verbose

提供Fair版本号

dependencies:
  fair: x.y.z

复现操作【可选】

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

预期【可选】

A clear and concise description of what you expected to happen.

相关截图【可选】

If applicable, add screenshots to help explain your problem.

其他【可选】

Add any other context about the problem here.

le4 avatar Nov 15 '21 11:11 le4

fair 在pub 没有更新,目前可以先clone 到本地,然后进行本地的依赖配置,可参考如下的配置:

environment: sdk: ">=2.7.0 <3.0.0"

dependencies: flutter: sdk: flutter fair: path: ../fair/fair

cupertino_icons: ^1.0.2

dev_dependencies: flutter_test: sdk: flutter build_runner: ^1.4.0 fair_compiler: path: ../fair/compiler

dependency_overrides: fair_version: path: ../fair/flutter_version/flutter_2_0_6

flutter:

uses-material-design: true assets: - assets/images/ - assets/bundle/

153493932 avatar Nov 26 '21 02:11 153493932