【发布时间】:2019-05-21 12:21:05
【问题描述】:
我的应用程序在 ionic 1 中,我正在使用 cordova-plugin-fcm。现在,当我进行构建时,我看到了这个错误:找不到符号类 FirebaseInstanceIdService。
我知道谷歌删除了那个库,我尝试了一些解决方案,比如 从以下位置更改 android project.properties:
cordova.system.library.1=com.google.firebase:firebase-core:+ cordova.system.library.2=com.google.firebase:firebase-messaging:+
到 cordova.system.library.1=com.google.firebase:firebase-core:16.0.8 cordova.system.library.2=com.google.firebase:firebase-messaging:17.5.0
很少有博客说有另一个插件解决了这个问题,但无论如何这个插件有任何解决方案。如果在这个插件中没有办法解决什么应该是其他插件cordova-firebase-plugin的正确解决方案。如果您可以提供任何非常有用的链接。
提前致谢。
【问题讨论】:
标签: ionic-framework