flutter_plugin_pdf_viewer >=1.0.4 被禁止
flutter_plugin_pdf_viewer >=1.0.4 is forbidden
我正在安装 2 个软件包:rxdart 和 flutter_plugin_pdf_viewer
rxdart: ^0.23.1
flutter_plugin_pdf_viewer: ^1.0.7
但是 flutter_plugin_pdf_viewer >=1.0.4 是被禁止的。
这是错误信息:
Because flutter_plugin_pdf_viewer >=1.0.4 depends on rxdart ^0.21.0 and flutterattendancesystem depends on rxdart ^0.23.1, flutter_plugin_pdf_viewer >=1.0.4 is forbidden.
So, because flutterattendancesystem depends on flutter_plugin_pdf_viewer ^1.0.7, version solving failed.
pub upgrade failed (1; So, because flutterattendancesystem dep
ends on flutter_plugin_pdf_viewer ^1.0.7, version solving failed.)
看看这个帖子https://github.com/CrossPT/flutter_plugin_pdf_viewer/issues/59
这个仓库维护不当,
您可以为 pdf 查看器使用不同的包。
或进行以下临时修复
手动编辑 .pub-cache
中 flutter_plugin_pdf_viewer-1.0.7
文件夹中的 pubspec.yaml
并将 rxdart: ^0.21.0
设置为 rxdart: ^0.23.1
。
在 flutter_plugin_pdf_viewer-1.07/lib/src/document.dart
的第 89
行,将 Observable
更改为 Stream
。
我正在安装 2 个软件包:rxdart 和 flutter_plugin_pdf_viewer
rxdart: ^0.23.1
flutter_plugin_pdf_viewer: ^1.0.7
但是 flutter_plugin_pdf_viewer >=1.0.4 是被禁止的。
这是错误信息:
Because flutter_plugin_pdf_viewer >=1.0.4 depends on rxdart ^0.21.0 and flutterattendancesystem depends on rxdart ^0.23.1, flutter_plugin_pdf_viewer >=1.0.4 is forbidden.
So, because flutterattendancesystem depends on flutter_plugin_pdf_viewer ^1.0.7, version solving failed.
pub upgrade failed (1; So, because flutterattendancesystem dep
ends on flutter_plugin_pdf_viewer ^1.0.7, version solving failed.)
看看这个帖子https://github.com/CrossPT/flutter_plugin_pdf_viewer/issues/59
这个仓库维护不当, 您可以为 pdf 查看器使用不同的包。
或进行以下临时修复
手动编辑 .pub-cache
中 flutter_plugin_pdf_viewer-1.0.7
文件夹中的 pubspec.yaml
并将 rxdart: ^0.21.0
设置为 rxdart: ^0.23.1
。
在 flutter_plugin_pdf_viewer-1.07/lib/src/document.dart
的第 89
行,将 Observable
更改为 Stream
。