I found the solution. I uninstalled Visual Studio, downloaded the latest Visual Studio setup, and used that setup to install C++. Then, I updated all the Firebase packages in the Flutter project.