首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >离子3,Googleplus插件和firebase插件游戏服务冲突问题-2019年8月

离子3,Googleplus插件和firebase插件游戏服务冲突问题-2019年8月
EN

Stack Overflow用户
提问于 2019-08-16 14:36:02
回答 1查看 175关注 0票数 0

我有一个使用firebase和google插件的离子型3应用程序,当我同时安装插件和调试安卓平台时,会产生一个processDebugResources错误。在火基插件问题中搜索后,我对firebase插件和android平台做了如下修改,然后我可以构建运行良好的安卓平台,但是google +不再工作了,没有任何错误或例外,只是等待承诺。有人能帮我吗?

我已经将这些行添加到firebase插件中。

代码语言:javascript
复制
<framework src="com.google.android.gms:play-services-tagmanager:16+" />
<framework src="com.google.firebase:firebase-core:16.+" />
<framework src="com.google.firebase:firebase-messaging:17.+" />
<framework src="com.google.firebase:firebase-config:16.+" />
<framework src="com.google.firebase:firebase-perf:16.+" />

并在plugins/cordova-plugins/src/android/ build.gradle中制作了这些插件。

代码语言:javascript
复制
compile 'com.google.firebase:firebase-auth:16.+' 
compile 'com.google.firebase:firebase-iid:16.+'

此外,我还将andriod平台级改为

代码语言:javascript
复制
classpath 'com.google.gms:google-services:4.2.0' // google-services dependency from cordova-plugin-firebase
EN

回答 1

Stack Overflow用户

发布于 2019-08-22 06:55:33

我被解决了就像:

代码语言:javascript
复制
ionic cordova plugin add cordova-plugin-googleplus --save --variable REVERSED_CLIENT_ID=com.googleusercontent.apps.************* --variable WEB_APPLICATION_CLIENT_ID=*************.apps.googleusercontent.com --variable PLAY_SERVICES_VERSION=15.0.1

样本代码:

var webClientId =‘*.apps.googleusercontent.com’;

代码语言:javascript
复制
this.googlePlus.login({
'webClientId': webClientId,
'offline': false
}).then.........
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/57526539

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档