【发布时间】:2020-01-25 14:17:11
【问题描述】:
在此链接中添加谷歌地图插件后会出现问题 https://github.com/mapsplugin/ionic-googlemaps-quickdemo-v4
这个谷歌地图在 ios 中运行良好,但是当我尝试在 android 上运行它时 得到这个错误
[cordova] * What went wrong:
[cordova] Execution failed for task
':app:processDebugGoogleServices'.
[cordova] > 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 10.+.
[cordova]
[cordova] * Try:
[cordova] Run with --stacktrace option to get the stack trace. Run
with --info or --debug option to get more log output. Run with --
scan to get full insights.
[cordova]
[cordova] * Get more help at https://help.gradle.org
[cordova]
[cordova] BUILD FAILED in 38s
[ERROR] An error occurred while running subprocess cordova.
cordova build android exited with exit code 1.
我尝试了所有这些解决方案,但对我不起作用,但对某人有用
1-https://forum.ionicframework.com/t/ionic-processdebuggoogleservices-version-conflict/132560
2-https://github.com/arnesson/cordova-plugin-firebase/issues/1093
4-https://forum.ionicframework.com/t/google-services-version-conflict-maps-fcm/93695/51
5-https://forum.ionicframework.com/t/google-services-version-conflict-maps-fcm/93695
【问题讨论】:
标签: google-maps ionic-framework google-play-services ionic4 cordova-plugin-fcm