[Solved] pubspec.yaml: A package may not list itself as a dependency.

Table of Contents
When I got this issue ?
This error I got for url_launcher package. But actual issue is when the dependency you have added and the project name of yours is exactly same then you will encounter this issue.
My dependency with error:
pubspec.yaml
name: url_launcher
description: A new Flutter project.
dependencies:
url_launcher: ^5.5.0
flutter:
sdk: flutter
Fix
Fix is very simple, you just need to rename your project.
Working code for your reference:
pubspec.yaml
name: url_launcher_demo
description: A new Flutter project.
dependencies:
url_launcher: ^5.5.0
flutter:
sdk: flutter
Lo666bet is pretty decent I guess, if you like those sites. See for yourself if you like it by visiting lo666bet!
Yo, ph898 is legit. Heard it was good and it’s definitely living up to the hype. Works smoothly. I like it a lot. Highly recommended. Try it out: ph898
Phmobacom is actually pretty cool. Easy to use. You can do a lot of things, and access is super simple. Makes things a lot easier Access it now: phmobacom
Just tried out the pito777app and I’m impressed. Everything runs super smooth and is totally user-friendly. Get it downloaded from: pito777app