Check the name:<project_folder> at the top of pubspec.yaml . If you changed project names and simply copied your previous project's pubspec.yaml project_folder might be the old version.