繁体   English   中英

如何修复离子科尔多瓦建立谷歌服务插件的Android?

[英]how to fix ionic cordova build android for google service plugin?

我已经搜索了很多,并试图缩短问题..我一直在android.properties中更改版本,但是它不起作用。

当我做ionic cordova build android它给出以下错误:

Script '/My-path-to/platforms/android/cordova-support-google-services/android-build.gradle' line: 16

* What went wrong:
A problem occurred evaluating project ':app'.
> Failed to apply plugin [class 'com.google.gms.googleservices.GoogleServicesPlugin']
   > For input string: "+"

这是我的android.properties:

target=android-26
android.library.reference.1=CordovaLib
android.library.reference.2=app
cordova.gradle.include.1=cordova-plugin-firebase/android-build.gradle
cordova.system.library.1=com.google.gms:google-services:+
cordova.system.library.2=com.google.android.gms:play-services-tagmanager:+
cordova.system.library.3=com.google.firebase:firebase-core:+
cordova.system.library.4=com.google.firebase:firebase-messaging:+
cordova.system.library.5=com.google.firebase:firebase-crash:+
cordova.system.library.6=com.google.firebase:firebase-config:+
cordova.system.library.7=com.google.firebase:firebase-perf:+
cordova.gradle.include.2=cordova-support-google-services/android-build.gradle
cordova.system.library.8=com.google.firebase:firebase-auth:11.6.+
cordova.gradle.include.3=cordova-plugin-googlemaps/android-tbxml-android.gradle
cordova.system.library.9=com.google.android.gms:play-services-maps:15.0.1
cordova.system.library.10=com.google.android.gms:play-services-location:15.0.1
cordova.system.library.11=com.android.support:support-core-utils:26.1.0

任何帮助/建议将不胜感激..如果需要任何细节,请让我知道..在此先感谢。

从Firebase控制台获取GoogleService.json文件->项目概述->项目设置->您的应用程序-> googleservice.json按钮,然后将文件粘贴到yourapp / platfom / android /或yourapp / platfom / android / app /

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM