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

运行不成功 #13

Closed
yxiangTang opened this issue Sep 29, 2022 · 1 comment
Closed

运行不成功 #13

yxiangTang opened this issue Sep 29, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@yxiangTang
Copy link

flutter 3.3.0
image

@AmosHuKe
Copy link
Owner

AmosHuKe commented Sep 29, 2022

感谢~
这个问题来自于 bonfire 这个库(游戏相关)

错误原因:

bonfire 进行了破坏性更新,但作者只更新了小版本号,会导致在 flutter pub get 获取依赖时自动更新到最新的小版本,导致一些组件无法使用。

解决方式:

以下两种方式任选其一
方式1(推荐):pubspec.yaml 中将 bonfire: ^2.6.1 修改为 bonfire: 2.6.1,然后 flutter clean 清理构建,最后 flutter pub get 重新获取依赖。

方式2: 不要删除项目下的 pubspec.lock 文件(如果删除了就重新覆盖),就算编辑器提示自动更新也不要去点,然后 flutter clean 清理构建,最后 flutter pub get 重新获取依赖。

@AmosHuKe AmosHuKe added the bug Something isn't working label Sep 29, 2022
@AmosHuKe AmosHuKe mentioned this issue Oct 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants