Flutter pub获取错误(open_file_safe ^3.2.3和file_picker ^5.2.2)如何修复此错误?

1l5u6lss  于 2022-11-30  发布在  Flutter
关注(0)|答案(1)|浏览(152)

执行pub get后,我收到下列错误(第一次建置)

Because file_picker >=5.0.0 depends on ffi ^2.0.1 and open_file_safe 3.2.3 depends on ffi ^1.0.0, file_picker >=5.0.0 is incompatible with open_file_safe 3.2.3.
And because no versions of open_file_safe match >3.2.3 <4.0.0, file_picker >=5.0.0 is incompatible with open_file_safe ^3.2.3.
So, because app depends on both open_file_safe ^3.2.3 and file_picker ^5.2.2, version solving failed.
pub get failed (1; So, because app depends on both open_file_safe ^3.2.3 and file_picker ^5.2.2, version solving failed.)

我尝试运行pub get命令,并希望它能成功运行,没有任何错误。

xa9qqrwz

xa9qqrwz1#

作为目前的快速解决方案,您可以使用
https://pub.dev/packages/open_filex
当且仅当您的应用仅在移动操作系统上运行时

相关问题