将com.google.android.gms的版本更新为9.2.0 [英] updating the version of com.google.android.gms to 9.2.0
问题描述
我使用Ionic 2。
I am using Ionic 2.
我一直在使用Googles FCM服务推送通知。今天我的电脑崩溃了,我不得不重新安装 phonegap-plugin-push
插件。现在在构建,我得到以下错误:
I have been using Googles FCM service for push notifications. Today my pc crashed and I had to reinstall the phonegap-plugin-push
plugin. Now on build, I get the following error:
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.2.0.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Error: cmd: Command failed with exit code 1 Error output:
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.2.0.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
看起来有些东西必须更新,我想在 phonegap-plugin -push
插件,需要更新的依赖关系(即 com.google.android.gms至9.2.0
。)
It looks like something must have updated, I think in the phonegap-plugin-push
plugin that requires an updated dependency (i.e. com.google.android.gms to 9.2.0
.)
有谁知道在Angular / Ionic / Cordova / npm环境中如何更新?
Does anyone know how in an Angular/Ionic/Cordova/npm environement I can update this?
更多信息: strong>
More Info:
>cordova plugin ls
cordova-plugin-camera 2.2.0 "Camera"
cordova-plugin-compat 1.0.0 "Compat"
cordova-plugin-console 1.0.3 "Console"
cordova-plugin-crop 0.1.0 "CropPlugin"
cordova-plugin-device 1.1.2 "Device"
cordova-plugin-fcm 1.1.5 "FCMPlugin"
cordova-plugin-geolocation 2.2.0 "Geolocation"
cordova-plugin-googlemaps 1.3.9 "phonegap-googlemaps-plugin"
cordova-plugin-inappbrowser 1.5.0 "InAppBrowser"
cordova-plugin-network-information 1.3.0 "Network Information"
cordova-plugin-splashscreen 3.2.2 "Splashscreen"
cordova-plugin-statusbar 2.1.3 "StatusBar"
cordova-plugin-velda-devicefeedback 0.0.2 "DeviceFeedback"
cordova-plugin-whitelist 1.2.2 "Whitelist"
cordova-sqlite-plugin 3.0.0 "Cordova SQLite Plugin"
cordova-sqlite-storage 1.4.8 "Cordova sqlite storage plugin"
ionic-plugin-keyboard 2.2.1 "Keyboard"
phonegap-plugin-push 1.8.3 "PushPlugin"
推荐答案
当我得到相同的错误消息,我看到以下朝向错误消息的结尾:
while i got the same error message, i saw the following towards the end of the error message also:
Found com.google.android.gms:play-services-auth:+, but version 9.2.0 is needed for the google-services plugin.
Found com.google.android.gms:play-services-identity:+, but version 9.2.0 is needed for the google-services plugin.
我通过更改文件修复了 platforms / android / project.properties
来自
i fixed the issues by changing the file platforms/android/project.properties
contents from
cordova.system.library.1=com.google.android.gms:play-services-auth:+
cordova.system.library.2=com.google.android.gms:play-services-identity:+
到
cordova.system.library.1=com.google.android.gms:play-services-auth:9.2.0
cordova.system.library.2=com.google.android.gms:play-services-identity:9.2.0
检查您是否也看到有关上述特定 gms
服务的错误,然后相应的更改
check if you too are seeing errors about specific gms
services like the above and then make corresponding changes
这篇关于将com.google.android.gms的版本更新为9.2.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!