jnschulze / flutter-webview-windows

A WebView2-powered Flutter WebView implementation for the Windows platform.
BSD 3-Clause "New" or "Revised" License
203 stars 120 forks source link

Build windows failed #226

Closed hushmand closed 1 year ago

hushmand commented 1 year ago

After adding the flutter-webview-windows to app, the project does not build

I used flutter 3.3.9 and visual studio 2019

flutter build windows  💪 Building with sound null safety 💪  C:\Users\template\Desktop\temp\winapp\windows\flutter\ephemeral.plugin_symlinks\webview_windows\windows\webview_windows_plugin.cc(190,22): error C2039: 'format': is not a member of 'std' [C:\Users\template\Desktop\temp\winapp\build\windows\plugins\webview_windows\webview_windows_plugin.vcxproj] C:\Users\template\Desktop\temp\winapp\windows\flutter\ephemeral.plugin_symlinks\webview_windows\windows\webview_windows_plugin.cc(210,1): error C3861: 'format': identifier not found [C:\Users\template\Desktop\temp\winapp\build\windows\plugins\webview_windows\webview_windows_plugin.vcxproj] C:\Users\template\Desktop\temp\winapp\windows\flutter\ephemeral.plugin_symlinks\webview_windows\windows\webview.cc(5,10): fatal error C1083: Cannot open include file: 'format': No such file or directory [C:\Users\template\Desktop\temp\winapp\build\windows\plugins\webview_windows\webview_windows_plugin.vcxproj] C:\Users\template\Desktop\temp\winapp\windows\flutter\ephemeral.plugin_symlinks\webview_windows\windows\webview_bridge.cc(6,10): fatal error C1083: Cannot open include file: 'format': No such file or directory [C:\Users\template\Desktop\temp\winapp\build\windows\plugins\webview_windows\webview_windows_plugin.vcxproj] Building Windows application... Build process failed.

luwei888 commented 1 year ago

Update flutter to version 3.7.0

hushmand commented 1 year ago

Update flutter to version 3.7.0

I tested Flutter version 3.7.0. But it gave same error

Nhsdkk commented 1 year ago

Same on version 3.7.5

IvoB1987 commented 1 year ago

I have the same issue. Flutter 3.7.5

bilalmohammedzeyada commented 1 year ago

I found this solution https://github.com/jnschulze/flutter-webview-windows/issues/228