2016-11-30 46 views
2

我有一个的PhoneGap项目通过PhoneGap的建设apk文件转换:所以我需要从目录添加我的根项目中的一个插件(具体而言,插件是从科尔多瓦-插件-FCM-配置https://www.npmjs.com/package/cordova-plugin-fcm-config,我遵循所有的指令),但是当我建立我的应用我有此错误:添加插件PhoneGap的应用

Failed to fetch plugin [email protected] via registry. Probably this is either a connection problem, or plugin spec is incorrect. Check your connection and plugin name/version/URL. Error: No compatible version found: [email protected]'cordova-plugin-fcm-config' Valid install targets: ["1.0.0"]

我该如何解决?

感谢;)

+0

请分享你的config.xml –

+0

感谢您的回复:多次尝试后,我已经改变插件来实现推送通知functionalilty,加入“<首选项名称= “机器人-集结工具” 值= “gradle这个”/> <插件名称= “的PhoneGap-插件 - 推” 源= “NPM线” spec =“〜 1.8.4“> '我的Config.xml,但我得到PushNotifications未定义的问题:( – moo

回答

0

只是这行添加到您的config.xml

<plugin name="cordova-plugin-fcm-config"> 

欢呼

相关问题