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

Link error during compilation for Windows in Flutter #247

Closed zoenie123 closed 1 year ago

zoenie123 commented 1 year ago

What OS are you using (uname -a, or Windows version)?

Windows 11 Pro 22H2, OS build: 22621.1848

What programming language are you using (C/C++/Go/Rust)?

Flutter (Channel stable, 3.10.5, on Microsoft Windows [Version 10.0.22621.1848], locale en-GB) C++ Microsoft Visual Studio Professional 2022 (64-bit) - Current Version 17.6.4

What did you expect to see and what you saw instead?

After compilation I got a linker error (LNK1120) on webview_windows_plugin.vcxproj. This happened after ugrade of Visual Studio 2022. see all details below.

See also https://github.com/flutter/flutter/issues/129554

Steps to reproduce

Upgraded flutter in Android studio to the latest version: Flutter 3.10.5 • channel stable • https://github.com/flutter/flutter.git Framework • revision 796c8ef792 (13 days ago) • 2023-06-13 15:51:02 -0700 Engine • revision 45f6e00911 Tools • Dart 3.0.5 • DevTools 2.23.1

Upgraded Visual Studio 2022 to latest version (17.6.4)

Expected results

Correctly compiled application

Actual results

Before upgrades everything compiled ok, after upgrade linker errors:


Launching lib\main.dart on Windows in debug mode...
Building Windows application...
std.ixx.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void (__cdecl* std::_Raise_handler)(class stdext::exception const &)" (__imp_?_Raise_handler@std@@3P6AXAEBVexception@stdext@@@ZEA::<!std>) referenced in function "public: void __cdecl stdext::exception::_Raise(void)const " (?_Raise@exception@stdext@@QEBAXXZ::<!std>) [Q:\flutter_projects\order_app\build\windows\plugins\webview_windows\webview_windows_plugin.vcxproj]
Q:\flutter_projects\order_app\build\windows\plugins\webview_windows\Debug\webview_windows_plugin.dll : fatal error LNK1120: 1 unresolved externals [Q:\flutter_projects\order_app\build\windows\plugins\webview_windows\webview_windows_plugin.vcxproj]
Exception: Build process failed.

Logs

Logs ```console "Q:\vcpkg\installed\x64-windows\bin" "permission_handler_windows_plugin.dir\Release\permissi.281E90FF.tlog\permission_handler_windows_plugin.write.1u.tlog" "permission_handler_windows_plugin.dir\Release\vcpkg.applocal.log" [ +297 ms] FinalizeBuildStatus: [ ] Deleting file "permission_handler_windows_plugin.dir\Release\permissi.281E90FF.tlog\unsuccessfulbuild". [ ] Touching "permission_handler_windows_plugin.dir\Release\permissi.281E90FF.tlog\permission_handler_windows_plugin.lastbuildstate". [ ] Done Building Project "Q:\flutter_projects\order_app\build\windows\plugins\permission_handler_windows\permission_handler_windows_plugin.vcxproj" (default targets). [ +15 ms] Project "Q:\flutter_projects\order_app\build\windows\runner\order_app.vcxproj" (8) is building "Q:\flutter_projects\order_app\build\windows\plugins\webview_windows\webview_windows_plugin.vcxproj" (10) on node 1 (default targets). [ ] PrepareForBuild: [ ] Creating directory "webview_windows_plugin.dir\Release\". [ ] Creating directory "Q:\flutter_projects\order_app\build\windows\plugins\webview_windows\Release\". [ ] Creating directory "webview_windows_plugin.dir\Release\webview_.47C5FB59.tlog\". [ ] InitializeBuildStatus: [ ] Creating "webview_windows_plugin.dir\Release\webview_.47C5FB59.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified. [ +35 ms] CustomBuild: [ ] Building Custom Rule Q:/flutter_projects/order_app/windows/flutter/ephemeral/.plugin_symlinks/webview_windows/windows/CMakeLists.txt [ +42 ms] ComputeStdModulesCompileInputs: [ ] Reading library manifest file 'C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.36.32532\modules\modules.json' which provides data for library 'microsoft/STL'. [ ] Adding module source 'C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.36.32532\modules\std.ixx' from library 'microsoft/STL' to be built with this project. [ ] Adding module source 'C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.36.32532\modules\std.compat.ixx' from library 'microsoft/STL' to be built with this project. [ +8 ms] SetModuleDependencies: [ ] Creating directory "webview_windows_plugin.dir\Release\webview_.47C5FB59_MD.tlog\". [ +6 ms] Scanning sources for module dependencies... [ +23 ms] C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.36.32532\bin\HostX64\x64\CL.exe /c /IQ:\flutter_projects\order_app\build\windows\packages\Microsoft.Windows.ImplementationLibrary\build\native\..\..\include\ /IQ:\flutter_projects\order_app\build\windows\packages\Microsoft.Web.WebView2\build\native\include\ /IQ:\flutter_projects\order_app\windows\flutter\ephemeral /IQ:\flutter_projects\order_app\windows\flutter\ephemeral\cpp_client_wrapper\include /I"Q:\vcpkg\installed\x64-windows\include" /nologo /W4 /WX /diagnostics:column /O2 /Ob2 /D _WINDLL /D _UNICODE /D UNICODE /D WIN32 /D _WINDOWS /D NDEBUG /D HAVE_FLUTTER_D3D_TEXTURE /D _HAS_EXCEPTIONS=0 /D FLUTTER_PLUGIN_IMPL /D UNICODE /D _UNICODE /D "CMAKE_INTDIR=\"Release\"" /D webview_windows_plugin_EXPORTS /Gm- /EHsc /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /std:c++latest /ifcOutput "Q:\flutter_projects\order_app\build\windows\plugins\webview_windows\webview_windows_plugin.dir\Release\std.ixx.ifc" /scanDependencies "webview_windows_plugin.dir\Release\\" /Fo"webview_windows_plugin.dir\Release\std.ixx.obj" /Fd"webview_windows_plugin.dir\Release\vc143.pdb" /external:W4 /Gd /interface /wd4100 /errorReport:queue /TP "C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.36.32532\modules\std.ixx" [ +1 ms] C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.36.32532\bin\HostX64\x64\CL.exe /c /IQ:\flutter_projects\order_app\build\windows\packages\Microsoft.Windows.ImplementationLibrary\build\native\..\..\include\ /IQ:\flutter_projects\order_app\build\windows\packages\Microsoft.Web.WebView2\build\native\include\ /IQ:\flutter_projects\order_app\windows\flutter\ephemeral /IQ:\flutter_projects\order_app\windows\flutter\ephemeral\cpp_client_wrapper\include /I"Q:\vcpkg\installed\x64-windows\include" /nologo /W4 /WX /diagnostics:column /O2 /Ob2 /D _WINDLL /D _UNICODE /D UNICODE /D WIN32 /D _WINDOWS /D NDEBUG /D HAVE_FLUTTER_D3D_TEXTURE /D _HAS_EXCEPTIONS=0 /D FLUTTER_PLUGIN_IMPL /D UNICODE /D _UNICODE /D "CMAKE_INTDIR=\"Release\"" /D webview_windows_plugin_EXPORTS /Gm- /EHsc /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /std:c++latest /ifcOutput "Q:\flutter_projects\order_app\build\windows\plugins\webview_windows\webview_windows_plugin.dir\Release\std.compat.ixx.ifc" /scanDependencies "webview_windows_plugin.dir\Release\\" /Fo"webview_windows_plugin.dir\Release\std.compat.ixx.obj" /Fd"webview_windows_plugin.dir\Release\vc143.pdb" /external:W4 /Gd /interface /wd4100 /errorReport:queue /TP "C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.36.32532\modules\std.compat.ixx" [ +47 ms] std.ixx [ +12 ms] std.compat.ixx [ +170 ms] VcpkgTripletSelection: [ ] Using triplet "x64-windows" from "Q:\vcpkg\installed\x64-windows\" [ ] Using normalized configuration "Release" [ +1 ms] ClCompile: [ ] Compiling... [ ] C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.36.32532\bin\HostX64\x64\CL.exe /c /IQ:\flutter_projects\order_app\build\windows\packages\Microsoft.Windows.ImplementationLibrary\build\native\..\..\include\ /IQ:\flutter_projects\order_app\build\windows\packages\Microsoft.Web.WebView2\build\native\include\ /IQ:\flutter_projects\order_app\windows\flutter\ephemeral /IQ:\flutter_projects\order_app\windows\flutter\ephemeral\cpp_client_wrapper\include /I"Q:\vcpkg\installed\x64-windows\include" /nologo /W4 /WX /diagnostics:column /O2 /Ob2 /D _WINDLL /D _UNICODE /D UNICODE /D WIN32 /D _WINDOWS /D NDEBUG /D HAVE_FLUTTER_D3D_TEXTURE /D _HAS_EXCEPTIONS=0 /D FLUTTER_PLUGIN_IMPL /D UNICODE /D _UNICODE /D "CMAKE_INTDIR=\"Release\"" /D webview_windows_plugin_EXPORTS /Gm- /EHsc /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /std:c++latest /ifcOutput "Q:\flutter_projects\order_app\build\windows\plugins\webview_windows\webview_windows_plugin.dir\Release\std.ixx.ifc" /Fo"webview_windows_plugin.dir\Release\std.ixx.obj" /Fd"webview_windows_plugin.dir\Release\vc143.pdb" /sourceDependencies "Q:\flutter_projects\order_app\build\windows\plugins\webview_windows\webview_windows_plugin.dir\Release\std.ixx.ifc.d.json" /external:W4 /Gd /interface /wd4100 /errorReport:queue /TP "C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.36.32532\modules\std.ixx" [ +33 ms] std.ixx [+2340 ms] C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.36.32532\bin\HostX64\x64\CL.exe /c /IQ:\flutter_projects\order_app\build\windows\packages\Microsoft.Windows.ImplementationLibrary\build\native\..\..\include\ /IQ:\flutter_projects\order_app\build\windows\packages\Microsoft.Web.WebView2\build\native\include\ /IQ:\flutter_projects\order_app\windows\flutter\ephemeral /IQ:\flutter_projects\order_app\windows\flutter\ephemeral\cpp_client_wrapper\include /I"Q:\vcpkg\installed\x64-windows\include" /reference std=Q:\flutter_projects\order_app\build\windows\plugins\webview_windows\webview_windows_plugin.dir\Release\std.ixx.ifc /nologo /W4 /WX /diagnostics:column /O2 /Ob2 /D _WINDLL /D _UNICODE /D UNICODE /D WIN32 /D _WINDOWS /D NDEBUG /D HAVE_FLUTTER_D3D_TEXTURE /D _HAS_EXCEPTIONS=0 /D FLUTTER_PLUGIN_IMPL /D UNICODE /D _UNICODE /D "CMAKE_INTDIR=\"Release\"" /D webview_windows_plugin_EXPORTS /Gm- /EHsc /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /std:c++latest /ifcOutput "Q:\flutter_projects\order_app\build\windows\plugins\webview_windows\webview_windows_plugin.dir\Release\std.compat.ixx.ifc" /Fo"webview_windows_plugin.dir\Release\std.compat.ixx.obj" /Fd"webview_windows_plugin.dir\Release\vc143.pdb" /sourceDependencies "Q:\flutter_projects\order_app\build\windows\plugins\webview_windows\webview_windows_plugin.dir\Release\std.compat.ixx.ifc.d.json" /external:W4 /Gd /interface /wd4100 /errorReport:queue /TP "C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.36.32532\modules\std.compat.ixx" [ +44 ms] std.compat.ixx [ +50 ms] C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.36.32532\bin\HostX64\x64\CL.exe /c /IQ:\flutter_projects\order_app\build\windows\packages\Microsoft.Windows.ImplementationLibrary\build\native\..\..\include\ /IQ:\flutter_projects\order_app\build\windows\packages\Microsoft.Web.WebView2\build\native\include\ /IQ:\flutter_projects\order_app\windows\flutter\ephemeral /IQ:\flutter_projects\order_app\windows\flutter\ephemeral\cpp_client_wrapper\include /I"Q:\vcpkg\installed\x64-windows\include" /reference std=Q:\flutter_projects\order_app\build\windows\plugins\webview_windows\webview_windows_plugin.dir\Release\std.ixx.ifc /reference std.compat=Q:\flutter_projects\order_app\build\windows\plugins\webview_windows\webview_windows_plugin.dir\Release\std.compat.ixx.ifc /nologo /W4 /WX /diagnostics:column /O2 /Ob2 /D _WINDLL /D _UNICODE /D UNICODE /D WIN32 /D _WINDOWS /D NDEBUG /D HAVE_FLUTTER_D3D_TEXTURE /D _HAS_EXCEPTIONS=0 /D FLUTTER_PLUGIN_IMPL /D UNICODE /D _UNICODE /D "CMAKE_INTDIR=\"Release\"" /D webview_windows_plugin_EXPORTS /Gm- /EHsc /MD /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /std:c++latest /Fo"webview_windows_plugin.dir\Release\\" /Fd"webview_windows_plugin.dir\Release\vc143.pdb" /external:W4 /Gd /TP /wd4100 /errorReport:queue Q:\flutter_projects\order_app\windows\flutter\ephemeral\.plugin_symlinks\webview_windows\windows\webview_windows_plugin.cc Q:\flutter_projects\order_app\windows\flutter\ephemeral\.plugin_symlinks\webview_windows\windows\webview_platform.cc Q:\flutter_projects\order_app\windows\flutter\ephemeral\.plugin_symlinks\webview_windows\windows\webview.cc Q:\flutter_projects\order_app\windows\flutter\ephemeral\.plugin_symlinks\webview_windows\windows\webview_host.cc Q:\flutter_projects\order_app\windows\flutter\ephemeral\.plugin_symlinks\webview_windows\windows\webview_bridge.cc Q:\flutter_projects\order_app\windows\flutter\ephemeral\.plugin_symlinks\webview_windows\windows\texture_bridge.cc Q:\flutter_projects\order_app\windows\flutter\ephemeral\.plugin_symlinks\webview_windows\windows\graphics_context.cc Q:\flutter_projects\order_app\windows\flutter\ephemeral\.plugin_symlinks\webview_windows\windows\util\direct3d11.interop.cc Q:\flutter_projects\order_app\windows\flutter\ephemeral\.plugin_symlinks\webview_windows\windows\util\rohelper.cc Q:\flutter_projects\order_app\windows\flutter\ephemeral\.plugin_symlinks\webview_windows\windows\util\string_converter.cc Q:\flutter_projects\order_app\windows\flutter\ephemeral\.plugin_symlinks\webview_windows\windows\texture_bridge_gpu.cc [ +33 ms] webview_windows_plugin.cc [+3193 ms] webview_platform.cc [+2530 ms] webview.cc [+2897 ms] webview_host.cc [+2889 ms] webview_bridge.cc [+3257 ms] texture_bridge.cc [+2431 ms] graphics_context.cc [+2757 ms] direct3d11.interop.cc [+1277 ms] rohelper.cc [+1167 ms] string_converter.cc [ +379 ms] texture_bridge_gpu.cc [+2463 ms] Generating Code... [+3104 ms] Link: [ ] C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.36.32532\bin\HostX64\x64\link.exe /ERRORREPORT:QUEUE /OUT:"Q:\flutter_projects\order_app\build\windows\plugins\webview_windows\Release\webview_windows_plugin.dll" /INCREMENTAL:NO /NOLOGO /LIBPATH:Q:\flutter_projects\order_app\build\windows\packages\Microsoft.Web.WebView2\build\native\x64 /LIBPATH:"Q:\vcpkg\installed\x64-windows\lib" /LIBPATH:"Q:\vcpkg\installed\x64-windows\lib\manual-link" /NATVIS:Q:\flutter_projects\order_app\build\windows\packages\Microsoft.Windows.ImplementationLibrary\build\native\..\..\natvis\wil.natvis WebView2Loader.dll.lib ..\..\flutter\Release\flutter_wrapper_plugin.lib Q:\flutter_projects\order_app\windows\flutter\ephemeral\flutter_windows.dll.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib "Q:\vcpkg\installed\x64-windows\lib\*.lib" /MANIFEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:"Q:/flutter_projects/order_app/build/windows/plugins/webview_windows/Release/webview_windows_plugin.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT /IMPLIB:"Q:/flutter_projects/order_app/build/windows/plugins/webview_windows/Release/webview_windows_plugin.lib" /MACHINE:X64 /machine:x64 /DLL webview_windows_plugin.dir\Release\webview_windows_plugin.obj [ ] webview_windows_plugin.dir\Release\webview_platform.obj [ ] webview_windows_plugin.dir\Release\webview.obj [ ] webview_windows_plugin.dir\Release\webview_host.obj [ ] webview_windows_plugin.dir\Release\webview_bridge.obj [ ] webview_windows_plugin.dir\Release\texture_bridge.obj [ ] webview_windows_plugin.dir\Release\graphics_context.obj [ ] webview_windows_plugin.dir\Release\direct3d11.interop.obj [ ] webview_windows_plugin.dir\Release\rohelper.obj [ ] webview_windows_plugin.dir\Release\string_converter.obj [ ] webview_windows_plugin.dir\Release\texture_bridge_gpu.obj [ ] webview_windows_plugin.dir\Release\std.ixx.obj [ ] webview_windows_plugin.dir\Release\std.compat.ixx.obj [ +100 ms] Creating library Q:/flutter_projects/order_app/build/windows/plugins/webview_windows/Release/webview_windows_plugin.lib and object Q:/flutter_projects/order_app/build/windows/plugins/webview_windows/Release/webview_windows_plugin.exp [ +31 ms] std.ixx.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void (__cdecl* std::_Raise_handler)(class stdext::exception const &)" (__imp_?_Raise_handler@std@@3P6AXAEBVexception@stdext@@@ZEA::) referenced in function "public: void __cdecl stdext::exception::_Raise(void)const " (?_Raise@exception@stdext@@QEBAXXZ::) [Q:\flutter_projects\order_app\build\windows\plugins\webview_windows\webview_windows_plugin.vcxproj] [ +3 ms] Hint on symbols that are defined and could potentially match: [ ] "__declspec(dllimport) void (__cdecl* std::_Raise_handler)(class stdext::exception const &)" (__imp_?_Raise_handler@std@@3P6AXAEBVexception@stdext@@@ZEA) [ ] Q:\flutter_projects\order_app\build\windows\plugins\webview_windows\Release\webview_windows_plugin.dll : fatal error LNK1120: 1 unresolved externals [Q:\flutter_projects\order_app\build\windows\plugins\webview_windows\webview_windows_plugin.vcxproj] [ +12 ms] Done Building Project "Q:\flutter_projects\order_app\build\windows\plugins\webview_windows\webview_windows_plugin.vcxproj" (default targets) -- FAILED. [ ] Done Building Project "Q:\flutter_projects\order_app\build\windows\runner\order_app.vcxproj" (default targets) -- FAILED. [ ] Done Building Project "Q:\flutter_projects\order_app\build\windows\ALL_BUILD.vcxproj" (default targets) -- FAILED. [ ] Done Building Project "Q:\flutter_projects\order_app\build\windows\INSTALL.vcxproj" (default targets) -- FAILED. [ +2 ms] Build FAILED. [ ] "Q:\flutter_projects\order_app\build\windows\INSTALL.vcxproj" (default target) (1) -> [ ] "Q:\flutter_projects\order_app\build\windows\ALL_BUILD.vcxproj" (default target) (3) -> [ ] "Q:\flutter_projects\order_app\build\windows\runner\order_app.vcxproj" (default target) (8) -> [ ] "Q:\flutter_projects\order_app\build\windows\plugins\webview_windows\webview_windows_plugin.vcxproj" (default target) (10) -> [ ] (Link target) -> [ ] std.ixx.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) void (__cdecl* std::_Raise_handler)(class stdext::exception const &)" (__imp_?_Raise_handler@std@@3P6AXAEBVexception@stdext@@@ZEA::) referenced in function "public: void __cdecl stdext::exception::_Raise(void)const " (?_Raise@exception@stdext@@QEBAXXZ::) [Q:\flutter_projects\order_app\build\windows\plugins\webview_windows\webview_windows_plugin.vcxproj] [ ] Q:\flutter_projects\order_app\build\windows\plugins\webview_windows\Release\webview_windows_plugin.dll : fatal error LNK1120: 1 unresolved externals [Q:\flutter_projects\order_app\build\windows\plugins\webview_windows\webview_windows_plugin.vcxproj] [ ] 0 Warning(s) [ ] 2 Error(s) [ ] Time Elapsed 00:01:14.56 [ +13 ms] Building Windows application... (completed in 77.1s) [ ] "flutter windows" took 78,063ms. [ +2 ms] Build process failed. [ ] #0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3) #1 _runBuild (package:flutter_tools/src/windows/build_windows.dart:218:5) #2 buildWindows (package:flutter_tools/src/windows/build_windows.dart:94:5) #3 BuildWindowsCommand.runCommand (package:flutter_tools/src/commands/build_windows.dart:56:5) #4 FlutterCommand.run. (package:flutter_tools/src/runner/flutter_command.dart:1336:27) #5 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19) #6 CommandRunner.runCommand (package:args/command_runner.dart:212:13) #7 FlutterCommandRunner.runCommand. (package:flutter_tools/src/runner/flutter_command_runner.dart:296:9) #8 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19) #9 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:244:5) #10 run.. (package:flutter_tools/runner.dart:91:9) #11 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19) #12 main (package:flutter_tools/executable.dart:91:3) [ +53 ms] ensureAnalyticsSent: 48ms [ ] Running 0 shutdown hooks [ ] Shutdown hooks complete [ ] exiting with code 1 ```

Flutter Doctor output

Doctor output ```console PS Q:\flutter_projects\order_app> flutter doctor -v [√] Flutter (Channel stable, 3.10.5, on Microsoft Windows [Version 10.0.22621.1848], locale en-GB) • Flutter version 3.10.5 on channel stable at C:\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 796c8ef792 (13 days ago), 2023-06-13 15:51:02 -0700 • Engine revision 45f6e00911 • Dart version 3.0.5 • DevTools version 2.23.1 [√] Windows Version (Installed version of Windows is version 10 or higher) [√] Android toolchain - develop for Android devices (Android SDK version 33.0.2) • Android SDK at C:\Users\jeroe\AppData\Local\Android\sdk • Platform android-33, build-tools 33.0.2 • Java binary at: C:\Program Files\Android\Android Studio\jbr\bin\java • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694) • All Android licenses accepted. [√] Chrome - develop for the web • CHROME_EXECUTABLE = Q:\Flutter_projects\_chrome\chrome.bat [√] Visual Studio - develop for Windows (Visual Studio Professional 2022 17.6.4) • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Professional • Visual Studio Professional 2022 version 17.6.33815.320 • Windows 10 SDK version 10.0.22621.0 [√] Android Studio (version 2022.2) • Android Studio at C:\Program Files\Android\Android Studio • Flutter plugin can be installed from: https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 17.0.6+0-b2043.56-9586694) [√] VS Code (version 1.78.2) • VS Code at C:\Users\jeroe\AppData\Local\Programs\Microsoft VS Code • Flutter extension can be installed from: https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter [√] Connected device (3 available) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22621.1848] • Chrome (web) • chrome • web-javascript • Google Chrome 114.0.5735.111 • Edge (web) • edge • web-javascript • Microsoft Edge 114.0.1823.58 [√] Network resources • All expected network resources are available. • No issues found! ```
kausikMR commented 1 year ago

Same error for my too I used VisualStudio 2022 latest with the win11 sdk. The documentation says that it support VisualStudio version 2019 or later. I even tried installing the VisualStudio 2019 with the win11 20000, but a new error occurred.

CMake Error at flutter/ephemeral/.plugin_symlinks/webview_windows/windows/CMakeLists.txt:77 (target_compile_features):
  target_compile_features The compiler feature "cxx_std_23" is not known to
  CXX compiler

  "MSVC"

  version 19.29.30151.0.

Exception: Unable to generate build files
dethcalulator commented 1 year ago

https://github.com/jnschulze/flutter-webview-windows/issues/239#issuecomment-1564431122 Here is the solution for the problem.

zoenie123 commented 1 year ago

#239 (comment) Here is the solution for the problem.

Ok, that worked for me. When can we expect an update to the plugin?