【问题标题】:how to solve to build ionic 3 with firebase issue如何解决用firebase问题构建离子3
【发布时间】:2019-06-18 06:50:19
【问题描述】:

昨天运行构建没有失败,但突然发生了 firebase 问题。这个问题我应该怎么设置?

我尝试了以下

cordova.system.library.4=com.google.firebase:firebase-core:16.0.9 cordova.system.library.5=com.google.firebase:firebase-messaging:18.0.0 cordova.system.library.6=com.google.firebase:firebase-config:17.0.0 cordova.system.library.7=com.google.firebase:firebase-perf:17.0.2

链接: https://firebase.google.com/support/release-notes/android#update_-_may_31_2019

但这表明

  • 出了什么问题: [[18.0.0,18.0.0]] 的各种其他库正在请求库 com.google.firebase:firebase-iid,但解析为 19.0.0。禁用插件并使用 ./gradlew :app:dependencies 检查您的依赖关系树。

所以我更改了消息版本

cordova.system.library.5=com.google.firebase:firebase-messaging:19.0.0

但也显示错误

  • 出了什么问题: 任务 ':app:processDebugResources' 执行失败。 执行 aapt 失败

    ionic cordova build android ionic cordova run android

我做了 firebase 指示我做的事情,但尚未解决。

谢谢

【问题讨论】:

  • 同样的问题

标签: firebase ionic-framework build ionic3


【解决方案1】:

看看这个帖子:https://github.com/arnesson/cordova-plugin-firebase/issues/1081

特别是@dpa99c 的评论 https://github.com/arnesson/cordova-plugin-firebase/issues/1081#issuecomment-503135862

自 Firebase 支持更新(2019 年 6 月 17 日)以来,我遇到了同样的问题,但运行 @dpa99c 评论中的这些步骤对我有用。

除此之外,如果您也在为 iOS 构建,那么您可能需要更新到最新版本并在您的 iOS 平台文件夹中安装 pod(如果您还没有这样做的话)。

【讨论】:

    猜你喜欢
    • 2021-07-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-07-21
    • 2023-03-12
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多