我有一个使用firebase和google插件的离子型3应用程序,当我同时安装插件和调试安卓平台时,会产生一个processDebugResources错误。在火基插件问题中搜索后,我对firebase插件和android平台做了如下修改,然后我可以构建运行良好的安卓平台,但是google +不再工作了,没有任何错误或例外,只是等待承诺。有人能帮我吗?
我已经将这些行添加到firebase插件中。
<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中制作了这些插件。
compile 'com.google.firebase:firebase-auth:16.+'
compile 'com.google.firebase:firebase-iid:16.+'此外,我还将andriod平台级改为
classpath 'com.google.gms:google-services:4.2.0' // google-services dependency from cordova-plugin-firebase发布于 2019-08-22 06:55:33
我被解决了就像:
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’;
this.googlePlus.login({
'webClientId': webClientId,
'offline': false
}).then.........https://stackoverflow.com/questions/57526539
复制相似问题