【发布时间】:2019-02-14 04:18:31
【问题描述】:
我目前正在开发一个需要 Push 和 GoogleMaps 插件的 Ionic 应用程序。
如果我创建一个空白/新项目,添加 android 平台,并且只安装其中一个插件,那么一切都会完美运行。但是,一旦安装了这两个插件,Android 就不会构建。
这是我迄今为止所做的,是演示问题的最基本/最简单的方法:
- ionic 启动 GoogleServicesIsues 空白
- cd GoogleServicesIssue
- ionic cordova 平台添加 android@latest
- ionic cordova 插件添加 cordova-plugin-googlemaps --variable API_KEY_FOR_ANDROID="123" --变量 API_KEY_FOR_IOS="ABC"
- ionic cordova 插件添加 phonegap-plugin-push --variable FCM_VERSION=15.0.1
- ionic cordova build android
...构建失败,因为它找不到 firebase-messaging 库。
无法解析所有配置文件 ':app:debugCompileClasspath'。
找不到 com.google.firebase:firebase-messaging:15.0.1。在以下位置搜索:
文件:/Users/[user]/Library/Android/sdk/extras/android/m2repository/com/google/firebase/firebase-messaging/15.0.1/firebase-messaging-15.0.1.jar
https://jcenter.bintray.com/com/google/firebase/firebase-messaging/15.0.1/firebase-messaging-15.0.1.jarhttps://maven.google.com/com/google/firebase/firebase-messaging/15.0.1/firebase-messaging-15.0.1.pom
有谁知道如何让这两个插件一起工作?
【问题讨论】:
标签: android cordova firebase ionic-framework google-play-services