Describe the bug
Adding the dependency flutter_local_notifications: ^22.1.0 causes the project build to fail with the following error:
Could not write lines to file "flutter_local_notifications_windows.dir\Debug\flutter_.8EB699BA.tlog\flutter_local_notifications_windows.lastbuildstate"
Could not find a part of the path [...]\build\windows\x64\plugins\flutter_local_notifications_windows\shared\flutter_local_notifications_windows.dir\Debug\flutter_.8EB699BA.tlog\flutter_local_notifications_windows.lastbuildstate
C:\Program Files (x86)\Microsoft Visual Studio\18\BuildTools\MSBuild\Microsoft\VC\v180\Microsoft.CppBuild.targets(394,5):
error MSB3491: could not write lines to file "flutter_local_notifications_windows.dir\Debug\flutter_.8EB699BA.tlog\flutter_local_notifications_windows.lastbuildstate".
Could not find a part of the path 'E:\evo\evoscanner\evoscanner-desktop\build\windows\x64\plugins\flutter_local_notifications_windows\shared\flutter_local_notifications_windows.dir\Debug\flutter_.8EB699BA.tlog\flutter_local_notifications_windows.lastbuildstate'.
[E:\evo\evoscanner\evoscanner-desktop\build\windows\x64\plugins\flutter_local_notifications_windows\shared\flutter_local_notifications_windows.vcxproj]
To Reproduce
- Add a reference to
flutter_local_notifications: ^22.1.0
flutter clean
git clean -dfX
flutter pub get
- Build the project targeting Windows (
flutter build windows --verbose)
Expected behavior
Build completes successfully
flutter doctor -v
[√] Flutter (Channel stable, 3.44.6, on Microsoft Windows [Versione 10.0.26200.8894], locale it-IT) [709ms]
• Flutter version 3.44.6 on channel stable at C:\Dev\Flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision ee80f08bbf (11 days ago), 2026-07-08 15:02:06 -0700
• Engine revision 83675ed276
• Dart version 3.12.2
• DevTools version 2.57.0
• Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets, enable-swift-package-manager, omit-legacy-version-file, enable-lldb-debugging,
enable-uiscene-migration
[√] Windows Version (11 Enterprise 64 bit, 25H2, 2009) [2,5s]
[X] Android toolchain - develop for Android devices [309ms]
X Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/to/windows-android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
`flutter config --android-sdk` to update to that location.
[√] Chrome - develop for the web [238ms]
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop Windows apps (Visual Studio Build Tools 2026 18.8.0) [236ms]
• Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\18\BuildTools
• Visual Studio Build Tools 2026 version 18.8.12009.203
• Windows 10 SDK version 10.0.26100.0
[√] Connected device (3 available) [271ms]
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Versione 10.0.26200.8894]
• Chrome (web) • chrome • web-javascript • Google Chrome 149.0.7827.115
• Edge (web) • edge • web-javascript • Microsoft Edge 149.0.4022.80
[√] Network resources [3,4s]
• All expected network resources are available.
! Doctor found issues in 1 category.
Describe the bug
Adding the dependency
flutter_local_notifications: ^22.1.0causes the project build to fail with the following error:Could not write lines to file "flutter_local_notifications_windows.dir\Debug\flutter_.8EB699BA.tlog\flutter_local_notifications_windows.lastbuildstate"
Could not find a part of the path [...]\build\windows\x64\plugins\flutter_local_notifications_windows\shared\flutter_local_notifications_windows.dir\Debug\flutter_.8EB699BA.tlog\flutter_local_notifications_windows.lastbuildstate
To Reproduce
flutter_local_notifications: ^22.1.0flutter cleangit clean -dfXflutter pub getflutter build windows --verbose)Expected behavior
Build completes successfully
flutter doctor -v