Fair
Fair copied to clipboard
Fair 集成报错
Attention
自查步骤(新手必读)
- 核对flutter版本与readme说明,确认该版本已被Fair支持
- 核查fair_version分支版本于flutter一致,且等同于第一步版本号
- 如果尚未看过文档,请先运行自带的sample,能跑起来再接入app
- 遇到编译错误,请查看终端日志,过滤fair关键词
- 到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:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- 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.
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/