Skip to content

Intl : 0.17.0 Failed, because new flutter requires intl to be ^0.18.1 #989

@SayedAkhtar

Description

@SayedAkhtar

Description
Because APP_NAME depends on flutter_localizations from sdk which depends on intl 0.18.1, intl 0.18.1 is required.
So, because APP_NAME depends on intl ^0.17.0, version solving failed

Steps To Reproduce

  1. very_good create flutter_app APP_NAME

Expected Behavior
To complete setup of the app without any errors.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional Context
very_good create flutter_app khaabr
⠙ Bootstrapping... (85ms)conflict khaabr/pubspec.lock
Overwrite pubspec.lock? (Yyna) n
⠹ Bootstrapping... (7.1s)conflict khaabr/pubspec.yaml
Overwrite pubspec.yaml? (Yyna) nyes
✓ Generated 240 file(s) (27.0s)
✓ Running "flutter packages get" in ./khaabr (1.4s)
Unhandled exception:
ProcessException: Standard out
Resolving dependencies...
Standard error
Note: intl is pinned to version 0.18.1 by flutter_localizations from the flutter SDK.
See https://dart.dev/go/sdk-version-pinning for details.

Because khaabr depends on flutter_localizations from sdk which depends on intl 0.18.1, intl 0.18.1 is required.
So, because khaabr depends on intl ^0.17.0, version solving failed.

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

  • Try upgrading your constraint on intl: flutter pub add intl:^0.18.1
    Command: flutter packages get
    #0 _Cmd._throwIfProcessFailed (package:very_good_cli/src/cli/cli.dart:145:7)
    ci: add main workflow #1 _Cmd.run (package:very_good_cli/src/cli/cli.dart:97:7)
#2 Flutter.packagesGet. (package:very_good_cli/src/cli/flutter_cli.dart:101:11) #3 _runCommand (package:very_good_cli/src/cli/flutter_cli.dart:304:13) #4 Flutter.packagesGet (package:very_good_cli/src/cli/flutter_cli.dart:87:5) #5 installFlutterPackages (package:very_good_cli/src/commands/create/templates/post_generate_actions.dart:28:5) #6 VeryGoodCoreTemplate.onGenerateComplete (package:very_good_cli/src/commands/create/templates/very_good_core/very_good_core_template.dart:20:5) #7 CreateSubCommand.runCreate (package:very_good_cli/src/commands/create/commands/create_subcommand.dart:226:5) #8 CreateSubCommand.run (package:very_good_cli/src/commands/create/commands/create_subcommand.dart:200:20) #9 CommandRunner.runCommand (package:args/command_runner.dart:212:13) #10 VeryGoodCommandRunner.runCommand (package:very_good_cli/src/command_runner.dart:211:18) #11 VeryGoodCommandRunner.run (package:very_good_cli/src/command_runner.dart:148:14) #12 main (file:///Users/apple/.pub-cache/hosted/pub.dev/very_good_cli-0.14.0/bin/very_good.dart:5:24)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working as expectedp1High-priority issues at the top of the work listwaiting for responseWaiting for follow up

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions