Search
⚠️

Flutter Dependency Error

Problem [pubspec.yaml: A package may not list itself as a dependency]
This error appears when the user tries to add a library with a name identical to its project's name.
Solution 1
1.
move to pubspec.yaml
2.
edit code line 1
a.
name: OLD_PROJECT_NAME to name: NEW_PROJECT_NAME
3.
run Pub get

Reference