我正在尝试构建我的离子2应用程序(sudo ionic cordova build android)但是我收到以下错误:
Found com.google.android.gms:play-services-base:11.0.4, but version 9.0.0 is needed for the google-services plugin.
Found com.google.android.gms:play-services-ads:11.0.4, but version 9.0.0 is needed for the google-services plugin.
:processDebugGoogleServices
FAILED
请通过更新google-services插件的版本(https://bintray.com/android/android-tools/com.google.gms.google-services/提供有关最新版本的信息)或将com.google.android.gms的版本更新为9.0.0来修复版本冲突
我还分享了在构建操作期间出现的以下消息。它确实让我怀疑:
google-services plugin could not detect any version for com.google.android.gms or com.google.firebase, default version: 9.0.0 will be used.
please apply google-services plugin at the bottom of the build file.
我的应用程序有所有插件:
com-sarriaroman-photoviewer 1.1.11 "PhotoViewer"
cordova-admob-sdk 0.13.1 "AdMob SDK"
cordova-plugin-admob-free 0.13.0 "Cordova AdMob Plugin"
cordova-plugin-device 1.1.4 "Device"
cordova-plugin-fcm 2.1.2 "FCMPlugin"
cordova-plugin-ionic-webview 1.1.16 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 4.0.3 "Splashscreen"
cordova-plugin-whitelist 1.3.1 "Whitelist"
cordova-promise-polyfill 0.0.2 "cordova-promise-polyfill"
ionic-plugin-keyboard 2.2.1 "Keyboard"
我必须说在添加“Cordova AdMob插件”插件后出现此错误消息。
任何人都可以帮我解决这个问题吗?我被困住了,我不知道如何解决这个问题。
如果您需要更多信息,请与我们联系。
非常感谢你的帮助