After updating the Flutter version, this error may raise when you try to run the previous created app solution.
error D8: Program type already present: io.flutter.BuildConfig
This issue can be resolve by open terminal , set the directory into the flutter solution folder, and execute command
flutter packages get
Source : github