[Flutter] Flame 의 Install 문제

in #flutter4 years ago

오늘부터 Flutter 를 사용해서 간단한 게임을 만들어볼까..
생각해 보다가..
그래.. Flutter 에 Drawing Engine 이 좋으니..
분면 Game 엔진들이 있을거야..

검색 ㄱㄱ
https://www.dunebook.com/best-flutter-game-engine/
역시나 몇 가지의 Game 엔진이 있었고...

Flame 이라는 게임엔진이 제일 Document 나 Reference 가 잘 되어있는 듯...
Flame 으로 간단한 게임을 만들어 봐야겠다는 생각으로...
원본 페이지 ㄱㄱ
https://flame-engine.org/docs/

헌데.. 첫 줄 부터 이상하다..ㅎㅎㅎ
dependencies:
flame: ^0.23.0

pub get 을 Click..
Because every version of flutter_test from sdk depends on xml 3.6.1 and tiled >=0.4.0 depends on xml ^4.2.0, flutter_test from sdk is incompatible with tiled >=0.4.0.
And because flame ^0.23.0 depends on tiled ^0.5.0, flutter_test from sdk is incompatible with flame ^0.23.0.
So, because breakdown depends on both flame ^0.23.0 and flutter_test any from sdk, version solving failed.
pub get failed (1; So, because breakdown depends on both flame ^0.23.0 and flutter_test any from sdk, version solving failed.)

당췌... 이런 에러는 뭔지..

구글링 ㄱㄱ
https://stackoverflow.com/questions/62774419/i-have-an-error-in-vscode-when-trying-to-install-flame-under-pubspec-yaml

To check which channel you are currently on
Flutter Channel
To change to the beta channel
Flutter Channel Beta
To get the beta version
Flutter Upgrade
?????
채널을 바꾸라고?
이상한데...

https://amp.reddit.com/r/flutterhelp/comments/hmsmk4/having_an_error_i_dont_understand/
dependency_overrides:
라는 게 있다고?
그렇다면 일단 쓰라는데로...
dependency_overrides:
path: 1.7.0

음.... 동일한 에러... 뭐지?
아 path 는 다른 패키지..ㅎㅎㅎㅎㅎ

다시 Flame 의 릴리즈 시리즈를 보자...ㄱㄱ
https://github.com/flame-engine/flame/releases

여러 개가 나오는데....
dependency_overrides:
flame: 0.23.0
을 해도 동일하네;;;

dependency_overrides:
flame: 0.22.1
오예..

성공.

Coin Marketplace

STEEM 0.21
TRX 0.20
JST 0.034
BTC 91022.78
ETH 3148.10
USDT 1.00
SBD 2.96