-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Install flutter_inappwebview: ^2.1.0+1 Android project crashes #260
Comments
Same issue here too |
I also have this problem on a fresh flutter project with version: Flutter 1.12.13+hotfix.5 Here is the stacktrace that was logged in adb shell:
|
as already mentioned in other issues. The plugin system of flutter changed and if you are on the latest version, install from the master branch. Fixes will only be available when version 3.0 is officially released. I am running on the master branch now and everything works fine! |
@wwwdata so you're telling me we have to clone the repo and not download the plugin like usual from pub.dev and insert flutter_inappwebview in the dependencies section? |
Yes. You can import from a git repo. It is described here https://flutter.dev/docs/development/packages-and-plugins/using-packages#dependencies-on-unpublished-packages |
Yeah! If I add in the flutter_inappwebview:
git:
url: git@github.com:pichillilorenzo/flutter_inappwebview.git instead of: flutter_inappwebview: ^2.1.0+1 the app runs well! Thank you so much @wwwdata |
Thank you so much |
Thanks very much @wwwdata and @polilluminato However I am getting
I'm able to clone the repo from the command line, although I am asked for my passphrase. I can also download a ZIP or clone from github. But the seamless install as @polilluminato describes is not successful. |
Try with
instead of
I read on other repos that some Windows users fix the issue in this way, I'm on Linux so I cannot try but maybe It works for you. |
Thanks again @polilluminato , that did work. Should have thought of it myself as
It is also possible to clone or download a ZIP (then unzip) and use the local copy:
(note that backslashes, or double-backslashes, don't work) One final comment: if simply adding this package normally will automatically crash the app (which is why we're all here), a link to this issue should be highlighted on the front-page README. |
This issue is stale and has been automatically closed because it has been open for more than 365 days with no activity. Please reopen a new issue if you still have it. |
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. |
Environment
Android
Flutter version:
Flutter:1.12.13+hotfix.5
Android version:
Android 9.0
Description
After installing flutter_inappwebview: ^2.1.0+1, the project crashed when running. After debugging on the simulator, an error was reported as "Could not update files on device: HttpException: Connection closed before full header was received". After several versions were changed, no error was reported But it still collapses
The text was updated successfully, but these errors were encountered: