所以我试图在我的flutter应用程序中添加flutter_widget_from_html和better_player,但它们彼此不兼容。
这是错误消息:
C:\srcc\flutter\bin\flutter.bat --no-color pub get
Running "flutter pub get" in my_app_name...
Resolving dependencies...
Because flutter_widget_from_html >=0.10.0 depends on flutter_widget_from_html_core ^0.10.0 and better_player 0.0.83 depends on flutter_widget_from_html_core ^0.8.5+3, flutter_widget_from_html >=0.10.0 is incompatible with better_player 0.0.83.
And because no versions of better_player match >0.0.83 <0.1.0, flutter_widget_from_html >=0.10.0 is incompatible with better_player ^0.0.83.
So, because my_app_name depends on both better_player ^0.0.83 and flutter_widget_from_html ^0.10.0, version solving failed.
pub get failed
command: "C:\src\flutter\bin\cache\dart-sdk\bin\dart __deprecated_pub --directory . get --example"
pub env: {
"FLUTTER_ROOT": "C:\srcc\flutter",
"PUB_ENVIRONMENT": "flutter_cli:get",
"PUB_CACHE": "C:\Users\THIS PC\AppData\Local\Pub\Cache",
}
exit code: 1
Process finished with exit code 1
有人能帮我确定一种方法来集成这两个或任何其他解决方案,如果可用?
1条答案
按热度按时间falq053o1#
尝试使用降级到此版本
flutter_widget_from_html: 0.8.5
确保在版本之前不使用^符号