[Flutter] git clone 중 버전차이로 dependencies 에러

Do-Y·2024년 10월 22일

Flutter

목록 보기
2/5
  1. The lower bound of "sdk: '>=2.1.0 <3.0.0'" must be 2.12.0 or higher to enable null safety

  2. The current Dart SDK version is 3.5.0.

Because mi_card depends on cupertino_icons >=0.1.1 <1.0.1 which doesn't support null safety, version solving failed.

The lower bound of "sdk: '<2.0.0 or >=2.0.0-dev.28.0 <3.0.0'" must be 2.12.0 or higher to enable null safety.
For details, see https://dart.dev/null-safety

You can try the following suggestion to make the pubspec resolve:

  • Try upgrading your constraint on cupertino_icons: flutter pub add cupertino_icons:^1.0.8

yaml파일에서

  1. environment:
    sdk: ">=2.18.0"

  2. cupertino_icons: ^1.0.8

로 변경하고 put get 하면 오류 해결

profile
개발 Do

0개의 댓글