Error c1083 applinks

I had this flutter compile error that I searched everywhere for on VSCode but could not find a solution.

C:\Users\calvi\source\repos\biblebreeze\windows\runner\win32_window.cpp(7,10): error C1083: Cannot open include file: 'app_links_windows/app_links_windows_plugin.h': No such file or directory [C:\Users\calvi\source\repos\biblebreeze\build\windows\x64\runner\biblebreeze.vcxproj]

What I ended up doing was:

  1. Add app_links to pubspec.yaml
  2. comment out the applinks call in project_dir/windows/runner/win32_window.cpp and add in the new library header. Your win32_window.cpp file should look something like:
/*

#include "app_links_windows/app_links_windows_plugin.h"

*/

#include <app_links/app_links_plugin_c_api.h>