使用phonegap-plugin-push@2.1.2时,Ionic Build Android无法正常工作

时间:2018-08-23 10:18:41

标签: ionic-framework build notifications push phonegap-plugin-push

我已经尝试了其他帖子解决方案,但是在我的项目中似乎不起作用

cordova版本:8.0.0

我已经尝试了所有phonegap-plugin-push,使用2.0.0 / 2.1.0 / 2.1.2 / 2.2.3版本时,它总是会出错,我想更新为FCM。

错误:

Where:
Script 'C:\xampp\htdocs\x\platforms\android\phonegap-plugin-push\x-push.gradle' line: 38

What went wrong:
A problem occurred evaluating root project 'android'.

Failed to apply plugin [class 'com.google.gms.googleservices.GoogleServicesPlugin']
For input string: "+"

这是我的插件:

com.phonegap.plugins.fileopener 1.0.0 "File Opener"
com.telerik.plugins.nativepagetransitions 0.6.2 "Native Page Transitions"
com.verso.cordova.clipboard 0.1.0 "Clipboard"
cordova-plugin-actionsheet 2.3.1 "ActionSheet"
cordova-plugin-app-event 1.2.0 "Application Events"
cordova-plugin-badge 0.8.7 "Badge"
cordova-plugin-camera 2.4.0 "Camera"
cordova-plugin-compat 1.1.0 "Compat"
cordova-plugin-device 1.1.2 "Device"
cordova-plugin-file 4.1.1 "File"
cordova-plugin-file-opener2 2.0.2 "File Opener2"
cordova-plugin-file-transfer 1.5.1 "File Transfer"
cordova-plugin-hotline 1.2.1 "Hotline plugin for Phonegap"
cordova-plugin-inappbrowser 1.7.0 "InAppBrowser"
cordova-plugin-inapppurchase 1.1.0 "In App Purchase"
cordova-plugin-local-notification 0.9.0-beta.2 "LocalNotification"
cordova-plugin-media 2.2.0 "Media"
cordova-plugin-screen-orientation 1.4.2 "Screen Orientation"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.2.3 "StatusBar"
cordova-plugin-themeablebrowser 0.2.17 "ThemeableBrowser"
cordova-plugin-vibration 2.1.1 "Vibration"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova-plugin-x-socialsharing 5.1.3 "SocialSharing"
cordova-plugin-x-toast 2.5.2 "Toast"
cordova-sqlite-storage 1.4.8 "Cordova sqlite storage plugin"
ionic-plugin-keyboard 2.2.1 "Keyboard"
phonegap-plugin-push 2.0.0 "PushPlugin"
uk.co.workingedge.phonegap.plugin.launchnavigator 3.2.0 "Launch Navigator"

这是我的平台android@6.2.1 build.gradle:

target=android-25
android.library.reference.1=CordovaLib
cordova.system.library.1=com.android.support:support-v4:24.1.1+
cordova.gradle.include.1=cordova-plugin-hotline/devprod190-build.gradle
cordova.system.library.2=com.android.support:support-v4:26.+
cordova.gradle.include.2=cordova-plugin-local-notification/devprod190-localnotification.gradle
cordova.gradle.include.3=cordova-plugin-badge/devprod190-badge.gradle
cordova.system.library.3=com.android.support:support-v13:25.1.0
cordova.system.library.4=me.leolin:ShortcutBadger:1.1.17@aar
cordova.system.library.5=com.google.firebase:firebase-messaging:11.0.1
cordova.gradle.include.4=phonegap-plugin-push/devprod190-push.gradle
cordova.system.library.6=com.squareup.okhttp3:okhttp:3+

0 个答案:

没有答案