Please check the following before submitting a new issue.
Please select affected platform(s)
Steps to reproduce
- Use flutter-permission-handler in a Flutter app
- Use latest version of Visual Studio (18.6.1)
- 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, <experimental/coroutine>, <experimental/generator>, and <experimental/resumable> are deprecated by Microsoft and will be REMOVED SOON. They are superseded by the C++20 <coroutine> and C++23 <generator> 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
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.
Please check the following before submitting a new issue.
Please select affected platform(s)
Steps to reproduce
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, <experimental/coroutine>, <experimental/generator>, and <experimental/resumable> are deprecated by Microsoft and will be REMOVED SOON. They are superseded by the C++20 <coroutine> and C++23 <generator> 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