Baseflow / Baseflow/flutter-permission-handler
[Bug]: Windows build does not work with latest version of Visual Studio
- Dominant language
- Dart
- Stars
- 2.2k
- Forks
- 970
- Avg merge
- 14h 22m
- Merged PRs (30d)
- 2
Description
### Please check the following before submitting a new issue.
- [x] I have searched the [existing issues](https://github.com/baseflow/flutter-permission-handler/issues).
- [x] I have carefully [read the documentation](https://github.com/Baseflow/flutter-permission-handler/blob/main/permission_handler/README.md) and verified I have added the required platform specific configuration.
### Please select affected platform(s)
- [ ] Android
- [ ] iOS
- [x] Windows
### Steps to reproduce
1. Use flutter-permission-handler in a Flutter app
2. Use latest version of Visual Studio (18.6.1)
3. Try to compile the app for Windows
### Expected results
The app compiles and works fine.
### Actual results
Compilation fails with the following error:
`C:\Program Files\Microsoft Visual Studio\18\Community\VC\Tools\MSVC\14.51.36231\include\experimental\coroutine(37,1): error C2338: static assertion failed: 'error STL1011: The /await compiler option, , , and are deprecated by Microsoft and will be REMOVED SOON. They are superseded by the C++20 and C++23 headers. You can define _SILENCE_EXPERIMENTAL_COROUTINE_DEPRECATION_WARNINGS to suppress this error for now.' [C:\Users\marcn\pslab-app\build\windows\x64\plugins\permission_handler_windows\permission_handler_windows_plugin.vcxproj]`
### Code sample
-
### Screenshots or video
Screenshot
### Version
permission_handler 12.0.1
### Flutter Doctor output
Doctor output
```console
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.44.0, on Microsoft Windows [Version 10.0.26200.8328], locale de-DE)
[√] Windows Version (Windows 11 or higher, 25H2, 2009)
[X] Android toolchain - develop for Android devices
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.
[X] Chrome - develop for the web (Cannot find Chrome executable at "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe")
! "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" is not executable.
[√] Visual Studio - develop Windows apps (Visual Studio Community 2026 18.6.1)
[√] Connected device (2 available)
[√] Network resources
! Doctor found issues in 2 categories.
```
Contributor guide
Assessment
This issue has not been assessed yet.