[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
I installed the 317betapp on my phone. Easy access and runs smoothly. If you prefer apps, give it a download. Pretty convenient. 317betapp
Downloaded the 4betapp last night. Seems alright. Quick loading times and easy to navigate on my phone. Might be your thing. 4betapp
Heard good things about ph90, so I made an account. The interface isn’t flashy, but gets the job done. A solid option if you’re looking for something reliable. ph90