当我运行Command时:ionic cordova运行android
错误:找到com.google.android.gms:play-services-identity:11.8.0,但Google-services插件需要版本10. +
我认为这是Fcm插件问题
请解决此问题
预先感谢
答案 0 :(得分:3)
在离子3中
从平台更新文件-> android->项目属性
target = android-27 android.library.reference.1 = CordovaLib android.library.reference.2 = app
cordova.system.library.1 = com.squareup.okhttp3:okhttp-urlconnection:3.10.0 cordova.system.library.2 = com.android.support:support-v4:24.1.1+ cordova.system.library.3 = com.facebook.android:facebook-android-sdk:4.36.0 cordova.system.library.4 = com.google.firebase:firebase-core:10+ cordova.system.library.5 = com.google.firebase:firebase-messaging:10+ cordova.gradle.include.1 = cordova-plugin-fcm-带有依赖更新/app-FCMPlugin.gradle cordova.system.library.6 = com.google.android.gms:play-services-auth:10+ cordova.system.library.7 = com.google.android.gms:play-services-identity:10。+ cordova.system.library.8 = com.android.support:support-v4:24.1.1 +
并再次为Android构建它
在此处输入代码
为我工作