fluttercommunity / fluttercommunity/wakelock_plus
window不能编译
- Dominant language
- Dart
- Stars
- 109
- Forks
- 97
- Avg merge
- 5d 4h
- Merged PRs (30d)
- 2
Description
flutter3.41.8 + wakelock_plus: ^1.6.0 + vs2026
无法编译通过:
Launching lib\main.dart on Windows in debug mode...
d:\Microsoft Visual Studio\18\Enterprise\MSBuild\Microsoft\VC\v180\Microsoft.CppCommon.targets(254,5): error MSB8066: “F:\Desktop\XRDianJing\xrdianjing\build\windows\x64\CMakeFiles\9f1dbaf86b32e1c8810e42133b6eb54c\flutter_windows.dll.rule;F:\Desktop\XRDianJing\xrdianjing\build\windows\x64\CMakeFiles\36c016c5f1521cc7a2c37b3cf9ca58df\flutter_assemble.rule;F:\Desktop\XRDianJing\xrdianjing\windows\flutter\CMakeLists.txt”的自定义生成已退出,代码为 1。 [F:\Desktop\XRDianJing\xrdianjing\build\windows\x64\flutter\flutter_assemble.vcxproj]
Error: Build process failed.
log:
[ +11 ms] [ +10 ms] windows_aot_bundle: Complete
[+268441 ms] [+268439 ms] Could not acquire the lock to F:\Desktop\XRDianJing\xrdianjing\.dart_tool\hooks_runner\shared\win32\.lock.
[ +3 ms] [ +2 ms] Persisting file store
[ +16 ms] [ +19 ms] Done persisting file store
[ +70 ms] [ +70 ms] Target dart_build failed: TimeoutException after 0:05:00.000000: Could not acquire the lock to F:\Desktop\XRDianJing\xrdianjing\.dart_tool\hooks_runner\shared\win32\.lock.
Contributor guide
Research direction
Reproduce the Windows build with Flutter 3.41.8, wakelock_plus 1.6.0, and Visual Studio 2026, then inspect the failure involving windows/flutter/CMakeLists.txt and the .dart_tool/hooks_runner/shared/win32/.lock path. Done means the Windows debug build completes without the lock timeout or MSB8066 error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- build-system, desktop-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100