-
-
Notifications
You must be signed in to change notification settings - Fork 893
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
flutter_svg dependency build failed #351
Comments
You can do a dependency override by specifying this in your pubspec: dependency_overrides:
flutter_svg: 0.18.0 It will get fixed when the next flutter stable gets released: |
@ueman I see, now I have to use |
@Aoi-hosizora Hi, How did you resolve this issue? I am having the same issue. I tried adding dependency overrides but same issue. Can you share your pubsec? |
@sparkidea-codecrab Here is my dependencies:
# ...
flutter_html: ^1.0.0
# ...
dependency_overrides:
flutter_svg: 0.18.0 And here is my generated flutter_html:
dependency: "direct main"
description:
name: flutter_html
url: "https://pub.flutter-io.cn"
source: hosted
version: "1.0.0"
flutter_svg:
dependency: "direct overridden"
description:
name: flutter_svg
url: "https://pub.flutter-io.cn"
source: hosted
version: "0.18.0" |
@Aoi-hosizora Do I also have to add flutter_svg: ^0.17.4 on dependencies section? |
@sparkidea-codecrab No, flutter_html will dependent flutter_svg 0.17.4, and it will add to lock file automatically. So we have to override this version using |
@Aoi-hosizora I just did the same, but not luck. Got this: So, because kart depends on both flutter_test any from sdk and flutter_svg 0.18.0, version solving failed. |
@Aoi-hosizora I resolved it.. thank you! |
I have solved this problem temporarily using |
Solved it by adding dependency_overides in pubspec.xml
|
After I upgrade Flutter to
1.20.0-3.0.pre.142
, my project builds failed (see logs). I find thatflutter_svg 0.17.4
is depended byflutter_html 1.0.0
. I have found an issue related to this problem: dnfield/flutter_svg#368, but it says to updateflutter_svg
to 0.18.0+. So how could I fix this problem?The text was updated successfully, but these errors were encountered: