【发布时间】:2020-12-07 06:50:36
【问题描述】:
[flutter_application] 颤振发布获取
在 flutter_application 中运行“flutter pub get”...
因为 xml >=4.4.0 依赖于 petitparser ^3.1.0 而 xml >=3.7.0 =3.7.0 需要 petitparser ^3.0.0。
并且由于 intl_utils 1.5.0 依赖于 petitparser >=1.1.3 =0.18.0 依赖于 xml ^4.1.0,因此 intl_utils 1.5.0 与 flutter_svg >=0.18.0 不兼容。
所以,因为“App”同时依赖flutter_svg ^0.18.0和intl_utils 1.5.0,所以版本解析失败。 pub get failed (1; 所以,因为“App”同时依赖于flutter_svg ^0.18.0和intl_utils 1.5.0,版本求解失败。) 退出代码 1
dependencies:
flutter:
sdk: flutter
flutter_localizations:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: 0.1.2
google_maps_flutter: 0.5.27
google_map_location_picker: 3.2.2
mvc_pattern: 5.1.0
global_configuration: 1.5.0
http: 0.12.1
intl: 0.16.0
html: 0.14.0+3
shared_preferences: 0.5.7
flutter_html: 0.11.1
flutter_svg: ^0.18.0
location: 3.0.2
dynamic_theme: 1.0.1
flutter_inappbrowser: 2.0.2
url_launcher: 5.4.5
firebase_messaging: 6.0.13
cached_network_image: 2.2.0
fluttertoast: 4.0.1
flutter_staggered_grid_view: 0.3.0
carousel_slider: 1.3.0
sticky_headers: ^0.1.8
intl_utils: ^1.6.3
photo_view: ^0.9.2
【问题讨论】:
-
可以分享一下 pubspec.yaml 代码吗?
-
我分享了我的 pubspec.yaml 的屏幕截图
-
尝试安装
intl_utils: ^1.6.3和xml: ^4.4.0 -
我安装了 intl_utils: ^1.6.3 并且没有错误,但是在运行应用程序时,在这一步配置默认 Firebase 应用程序...构建持续运行超过 10 分钟,所以我停止了它
-
您好@pothurajusaichaitanya,欢迎来到SO。请查看此post 并考虑将图像替换为文本数据。这将改善那些试图回答您问题的人的体验。谢谢!