当我安装cordova-plugin-health时,一切正常,但安装cordova-plugin-fcm后,生成失败。记录如下。自上周以来我一直在努力,现在很难找到我没有看到的Stack Overflow答案。Phonegap + Android + FCM&Health插件
BUILD FAILED
Total time: 2.923 secs
Error: /Users/[...]/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':processDebugGoogleServices'.
> Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 9.0.0.
'谷歌services.json' 文件存在。 更新了Android SDK。 平台rm&add @ latest已完成。 仍然是一样的错误。 – kardossandor
你在phonegap中使用的是什么版本的android?即:phonegap插件列表 –
android 6.2.3,cordova-plugin-fcm 2.1.2“FCMPlugin”,cordova-plugin-health 1.0.0“Cordova Health” – kardossandor