Ionic Android Build-com.google.android.gms:play-services-measurement-base错误 [英] Ionic Android Build - com.google.android.gms:play-services-measurement-base Error

查看:85
本文介绍了Ionic Android Build-com.google.android.gms:play-services-measurement-base错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的错误:

:app:preReleaseBuild失败

:app:preReleaseBuild FAILED

FAILURE: Build failed with an exception.

* What went wrong:
The library com.google.android.gms:play-services-measurement-base is being
requested by various other libraries at [[16.5.0,16.5.0], [16.4.0,16.4.0]], 
but resolves to 16.5.0. Disable the plugin and check your dependencies tree
using ./gradlew :app:dependencies.

我为Firebase重新安装了npm和cordova插件,删除了节点模块,插件和所有内容,但问题仍然存在,无法构建项目.

I reinstalled the npm and cordova plugins for Firebase, I deleted the node-modules, the plugins and everything but the issue is still there and can't build the project.

有什么想法吗?

推荐答案

这解决了我的问题:

  1. 在您的项目文件夹中执行 cordova插件,添加 https://github.com/dpa99c/cordova-plugin-firebase#GH-1057-April-05-android-build-issue
  2. ionic cordova平台rm android
  3. ionic cordova平台添加了android.

您可以在此处找到解决方案: https://github.com/arnesson/cordova-plugin-firebase/pull/1058

You can find the solution here: https://github.com/arnesson/cordova-plugin-firebase/pull/1058

这篇关于Ionic Android Build-com.google.android.gms:play-services-measurement-base错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆