简体   繁体   English

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

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

I have searched for this a lot and tried to short out the problem.. i have followed to change version also inside android.properties but it's not working. 我已经搜索了很多,并试图缩短问题..我一直在android.properties中更改版本,但是它不起作用。

When i do ionic cordova build android it gives following error: 当我做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: "+"

Here is my android.properties : 这是我的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

Any help/suggetion would be very much appreciated..if need any detail please let me know.. Thanks in advance. 任何帮助/建议将不胜感激..如果需要任何细节,请让我知道..在此先感谢。

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

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

相关问题 如何修复Cordova构建Android? - How to fix build android by cordova? 离子科尔多瓦建立Android - ionic cordova build android 运行“ ionic cordova build android”命令时,如何解决无效或意外的令牌问题? - How to fix Invalid or unexpected token issue when running “ionic cordova build android” command? 运行 ionic cordova build android 时如何修复 AAPT 错误前台活动未找到? - how to fix AAPT error foreground activity not found when running ionic cordova build android? 离子中的 Android 构建错误 - 包括 Cordova 插件文件 - Android build error in ionic - on including Cordova plugin file 离子3,安装cordova-plugin-facebook4后无法构建android - Ionic 3, Cannot build android after install cordova-plugin-facebook4 在Android Ionic / Cordova上,如何从插件服务中启动CordovaActivity,并使其加载深度链接? - On Android Ionic/Cordova, how can I start a CordovaActivity from within the service of a plugin, and have it load a deeplink? Google Analytics Cordova插件无法与Android Ionic App配合使用 - Google Analytics Cordova Plugin not working with Android Ionic App 在Android中使用离子的Cordova Google-analytics-plugin不起作用 - Cordova Google-analytics-plugin with ionic in Android does not work 如何解决此错误:生成EACCES-离子Cordova构建iOS - How to fix this Error: spawn EACCES - ionic cordova build ios
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM