close

[Solved] flutter_localizations from SDK depends on intl 0.17.0 and fstore depends on intl ^0.16.1, flutter_localizations from SDK is forbidden

Hello Guys How are you all? Hope You all are fine. When I was trying to run pub get and suddenly I get the following error in my stack track. flutter_localizations from SDK depends on intl 0.17.0 and fstore depends on intl ^0.16.1, flutter_localizations from SDK is forbidden in a flutter. So today Here I come with all possible solutions for this error.

We are providing you all possible solutions to solve this error. let’s start this article without wasting your time.

How flutter_localizations from sdk depends on intl 0.17.0 and fstore depends on intl ^0.16.1, flutter_localizations from sdk is forbidden Error Occurs ?

I Run pub get and I get following error in my stack track.

Because every version of flutter_localizations from SDK depends on intl 0.17.0 and fstore depends on intl ^0.16.1, flutter_localizations from SDK is forbidden.

How to Solve flutter_localizations from sdk depends on intl 0.17.0 and fstore depends on intl ^0.16.1, flutter_localizations from sdk is forbidden Error?

  1. How to Solve flutter_localizations from SDK depends on intl 0.17.0 and fstore depends on intl ^0.16.1, flutter_localizations from SDK is forbidden Error?

    To Solve flutter_localizations from SDK depends on intl 0.17.0 and fstore depends on intl ^0.16.1, flutter_localizations from SDK is forbidden You just have to use Intl package latest version with the null safety. flutter_localizations need intl: ^0.16.1 while the last version needed intl: ^0.17.0-nullsafety.2. So we need to override the existing dependency we can resolve this issue. Just add this line in your pubspec.yaml

  2. flutter_localizations from SDK depends on intl 0.17.0 and fstore depends on intl ^0.16.1, flutter_localizations from SDK is forbidden

    To Solve flutter_localizations from SDK depends on intl 0.17.0 and fstore depends on intl ^0.16.1, flutter_localizations from SDK is forbidden You just have to use Intl package latest version with the null safety. flutter_localizations need intl: ^0.16.1 while the last version needed intl: ^0.17.0-nullsafety.2. So we need to override the existing dependency we can resolve this issue. Just add this line in your pubspec.yaml

Solution 1: Use Intl latest version with nullsafety

You just have to use Intl package latest version with the null safety. flutter_localizations need intl: ^0.16.1 while the last version needed intl: ^0.17.0-nullsafety.2. So we need to overriding the existing dependency we can resolve this issue. Just add this line in your pubspec.yaml

dependency_overrides:
   intl: ^0.17.0-nullsafety.2

Solution 2

Solved This error by just replaced the line.

intl: ^0.16.1

with

intl: ^0.17.0-nullsafety.2

Summery

So, It’s All About This Error. I hope this tutorial helps you to Solve your error. Please Comment Below if You stucks anywhere with my code. And please comment below on which solution worked for you. Thank You.

Also Check Out Below Tutorials

Leave a Comment

%d bloggers like this: