After pulling the project, use 'make windows-prepare' to compile the project, but encountered an error when compiling for the Windows platform in VSCode
Search first
- [X] I searched and no similar issues were found
What Happened?
PS D:\xiangmu_flutter\hiddify-next> flutter build windows
Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
/C:/Users/Mloong/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/flutter_adaptive_scaffold-0.1.11/lib/src/adaptive_scaffold.dart(342,20): error G8FBAF37F: 'WidgetState' isn't a type. [D:\xiangmu_flutter\hiddify-next\build\windows \x64\flutter\flutter_assemble.vcxproj] /C:/Users/Mloong/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/flutter_adaptive_scaffold-0.1.11/lib/src/adaptive_scaffold.dart(341,24): error GC9768DF9: Undefined name 'WidgetStateProperty'. [D:\xiangmu_flutter\hiddify-next\bui ld\windows\x64\flutter\flutter_assemble.vcxproj] E:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(247,5): error MSB8066: ��D:\xiangmu_flutter\hiddify-next\build\windows\x64\CMakeFiles\5114349f6f50d6076f6e0c88d43317ba\f lutter_windows.dll.rule;D:\xiangmu_flutter\hiddify-next\build\windows\x64\CMakeFiles\8c4de9ad936cd4604beabf3fd55fb077\flutter_assemble.rule;D:\xiangmu_flutter\hiddify-next\windows\flutter\CMakeLists.txt�����Զ����������˳�������Ϊ 1� � [D:\xiangmu_flutter\hiddify-next\build\windows\x64\flutter\flutter_assemble.vcxproj] Building Windows application... 33.5s Build process failed.
Minimal Reproducible Example (MRE)
After executing 'make windows-prepare' on the Windows platform, then execute 'flutter build windows', and then the aforementioned error occurs
Expected Behavior
No response
Version
V1.4.0
Platform/OS
Windows
Additional Context
No response
Application Config Options
No response
Relevant log output
No response
Are you willing to submit a PR? If you know how to fix the bug.
- [X] I'm willing to submit a PR (Thank you!)
try v2.3.1 and check if problem has been solved or not