-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to build on Windows (desktop) #2298
Comments
NOTE: This comment is auto-generated. Are you sure you have already searched for the same problem? Some people open new issues but they didn't search for something similar or for the same issue. Please, search for it using the GitHub issue search box or on the official inappwebview.dev website, or, also, using Google, StackOverflow, etc. before posting a new one. You may already find an answer to your problem! If this is really a new issue, then thank you for raising it. I will investigate it and get back to you as soon as possible. Please, make sure you have given me as much context as possible! Also, if you didn't already, post a code example that can replicate this issue. In the meantime, you can already search for some possible solutions online! Because this plugin uses native WebView, you can search online for the same issue adding Following these steps can save you, me, and other people a lot of time, thanks! |
As the error says Follow the instructions here: https://learn.microsoft.com/en-us/nuget/install-nuget-client-tools?tabs=windows#nugetexe-cli By the way, I still need to update the plugin docs for Windows on the website, as it was released just a few days ago. |
Just for reference: #460 |
Thank you. |
The important thing is that |
Interestingly, I could not find nuget.exe anywhere so I assume Visual Studio 2022 is directly accessing using its own internal code. |
Ok 👍 In this case I think that is only 8 MB because you are not including a fixed version of the WebView2 Runtime, so be aware to check the availability on the user side:
More about distribution: https://docs.microsoft.com/en-us/microsoft-edge/webview2/concepts/distribution Also, you should probably create a WebViewEnvironment to set a custom path for the
The default user data folder of WebView2 is your_exe_file\WebView2 , which is not a good place to store user data.For example, if the application is installed in a read-only directory, the application will crash when WebView2 tries to write data. After the creation, use it as the argument when you create an InAppWebView widget: flutter_inappwebview/flutter_inappwebview/example/lib/in_app_webiew_example.screen.dart Line 118 in 489500d
|
If |
@EchoEllet yes, but as I already said, I need to update the docs. |
Thank you for your efforts. Noticed As a side note, when macOS and Windows support was introduced, they were added in Since I would do one of the following:
In short, support for macOS and Windows itself is a feature that's not a breaking change or can be considered a minor breaking change since it requires more steps to build the existing project. Thank you for your time in fixing those issues and maintaining the project. I appreciate your help. |
@EchoEllet yes, you are right. I didn't though it could break the builds for macOS and Windows, as I wasn't changing the APIs of the plugin, so I considered it just as a minor change (just something new added). Rightfully so, if an app had support for macOS or Windows, upgrading to the latest plugin version or plugin that uses it as a dependency, could have broken the build. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue. |
Downloaded your package and trying to build on Microsoft Windows using Android Studio.
Attempting to build your example app:
I was able to build when the target was the Edge browser.
I was unable to build when the target was Windows (desktop).
Received the following error message:
Any assistance in fixing/resolving this problem will be appreciated.
Environment
Device information: Windows desktop
Description
Expected behavior:
Example app builds.
Current behavior:
Does not build
Steps to reproduce
Images
Stacktrace/Logcat
The text was updated successfully, but these errors were encountered: