skip to Main Content

( Because provider depends on provider, version solving failed )
When I Try To Install Provider I am facing this problem
And I have last version to flutter and last version to dart
when I run flutter pub add provider I am facing Because provider depends on provider, version solving failed

2

Answers


  1. If we are talking about the package, just go to the pubspec.yaml file and add this under the dependencies section

    dependencies:
      provider: ^6.1.2
    
    Login or Signup to reply.
  2. This can happen if you accidentally call your project "provider". I’ve done that a couple of times and been very confused. "Oh, I want to test out riverpod, so I’ll create a dummy project named riverpod…"

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search