Closed MatthiasMRC closed 1 year ago
I resolved my issue by following these steps:
Uninstalling and reinstalling Visual Studio with the C++ and .NET desktop packages
Ensuring that Visual Studio's NuGet is in the PATH, in my case:
C:\Users{your_user_name}\AppData\Local\Microsoft\WinGet\Links
C:\Program Files (x86)\Microsoft SDKs\NuGetPackages
right-click on NuGetPackage > Properties > Security > select "ALL APPLICATION PACKAGES" > Edit (in admin mode) > check all permissions.
Do the same for "ALL RESTRICTED APPLICATION PACKAGES"
In PowerShell, run the command:
nuget sources add -name "nuget.org" -source "https://api.nuget.org/v3/index.json"
Then download the WebView2 and Implementation Library packages with the following commands:
nuget install Microsoft.Web.WebView2
nuget install Microsoft.Windows.ImplementationLibrary
You should not encounter any errors during the downloads.
run into your project flutter clean
and flutter pub get
Now, the Flutter application for Windows builds correctly, and the WebView works fine.
When I build, I have this issue:
My flutter doctor:
I tried to change ccx_std like previous issue but it not working. Current I have this version: target_compile_features(${TARGET} PUBLIC cxx_std_17) change to 23 not working.
How to solve my issue ?