小编Ban*_*ram的帖子

pubspec.lock 中的依赖项解析为版本 2.9.0,但我们希望使用版本 2.7.1

我们正在尝试将 Firebase_crashlytics 集成到我们的应用程序中,但由于我们的应用程序是基于旧版本的 Flutter 构建的(它不支持 Null Safety),因此我们无法使用最新版本。然后我们决定集成 2.7.1 或更低版本,但 pubspec.lock 文件始终将版本解析为 2.9.0,这是 null 安全的,并且它会因我们的应用程序不是 null 安全而引发构建错误。

\n

有人可以指导我在这方面应该做什么或不做什么吗?

\n

这是我们的 Pubspec.yaml,

\n
name: ------\ndescription: A new Flutter application.\n\n# The following line prevents the package from being accidentally published to\n# pub.dev using `pub publish`. This is preferred for private packages.\npublish_to: 'none' # Remove this line if you wish to publish to pub.dev\n\n# The following defines the version and build number for your application.\n# A version number is three numbers separated by …
Run Code Online (Sandbox Code Playgroud)

android firebase crashlytics flutter

5
推荐指数
1
解决办法
626
查看次数

标签 统计

android ×1

crashlytics ×1

firebase ×1

flutter ×1