Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fair 集成报错 #51

Open
le4 opened this issue Nov 15, 2021 · 1 comment
Open

Fair 集成报错 #51

le4 opened this issue Nov 15, 2021 · 1 comment

Comments

@le4
Copy link

le4 commented Nov 15, 2021

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.

@153493932
Copy link
Contributor

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants