基于离子的游戏服务测量问题
问题描述
我在一个离子项目上遇到了一个问题,它昨天开始发生而没有修改任何依赖项.
I have a problem on an ionic project that it started happening yesterday without modifying any dependency.
当我运行 ionic cordova run android
我有这个错误:
When I run ionic cordova run android
I have this error:
但是这些天我没有安装任何依赖项.
But I didn't installed any dependency in these days.
这是我的 cordova 插件
列表:
我在我的 platforms/android/app/build.gradle
中找到了这些依赖项(如果很高兴知道的话):
I found these dependencies in my platforms/android/app/build.gradle
(if it's good to know):
我不知道在哪里搜索.我发现了一种解决方法,即在 platforms/android/build.gradle
中禁用 GoogleServicesPlugin 的版本检查: com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
但它对我不起作用.
I don't know where to search. I found a workaround that is disabling version check of GoogleServicesPlugin in the platforms/android/build.gradle
making: com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true
but it doesn't work for me.
提前致谢.
编辑:看来我不是唯一一个.这里.
EDIT: It seems like i'm not the only one. Here.
推荐答案
这里发布的解决方案没有对我有用.一个奇葩的人在cordova-firebase中打开了一个pull request-plugin
官方 repo 并且可以正常工作.
No solutions posted here worked for me. A wonderful person opened a pull request in the cordova-firebase-plugin
official repo and it works.
我做的步骤:
1 - 使用 ionic cordova plugin remove cordova-plugin-firebase
2 - 安装:ionic cordova plugin add cordova-plugin-firebasex
3 - rm -rf node_modules/plugins/platforms/android package-lock.json
4 - ionic cordova 平台添加 android &&npm 安装
现在它开始工作了.
这篇关于基于离子的游戏服务测量问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!