-
Notifications
You must be signed in to change notification settings - Fork 168
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
A required package was not found #261
Comments
Dont use flutter from snap, use git clone from GitHub |
Why flutter from GitHub instead of snap. What is the difference between them and which version download from GitHub. Provide link for it. |
i get same issue even after flutter clone and install from GitHub. Flutter 3.12.0-14.0.pre.48 • channel stable • https://github.com/flutter/flutter.git |
@dishant-livebird, make sure you have the pkg-config --list-all | grep webkit2gtk-4.1 The command above should output the found version. If the output is empty, then try run (for Ubuntu 22.04): sudo apt update ; sudo apt install libwebkit2gtk-4.1-dev |
I am facing a similar issue on ubuntu 20.04, |
@dIvYaNshhh, you can try using
pkg_check_modules(WebKit REQUIRED IMPORTED_TARGET webkit2gtk-4.0) or to more general: pkg_check_modules(WebKit IMPORTED_TARGET webkit2gtk-4.1)
if (NOT WebKit_FOUND)
pkg_check_modules(WebKit REQUIRED IMPORTED_TARGET webkit2gtk-4.0) # for backward compatibility
endif () And install webkit2gtk-4.0 from your package manager: sudo apt update ; sudo apt install libwebkit2gtk-4.0-dev According to my observations, backward compatibility with |
Steps to reproduce the behavior:
Use both version used 0.1.6 and 0.2.0
Also try to run GitHub example code and getting above same error.
Flutter version info :
Flutter Doctor summary
The text was updated successfully, but these errors were encountered: