Skip to content

Compilation error in VS 2026 18.6.0: C2338 static assertion failed - experimental coroutine headers deprecated (error STL1011) #58

Description

@yiky84119

Description

When building a Flutter project that depends on just_audio_windows, the compilation fails with the following error:

Issue 1: Experimental coroutine deprecation 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 and C++23 headers. You can define _SILENCE_EXPERIMENTAL_COROUTINE_DEPRECATION_WARNINGS to suppress this error for now.'

Issue 2: File encoding error for uri_utils.hpp

The uri_utils.hpp file has an incorrect file encoding format. It needs to be saved as **Unicode (UTF-8 with BOM)

Environment

  • Flutter version: 3.41.9
  • just_audio_windows version: 0.2.3
  • Visual Studio version: 2026 18.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions