错误:在项目“应用”中,已解决的Google Play服务库依赖项依赖于另一个

拉贾塞卡兰M

我在尝试升级插件时遇到这样的错误。我尝试了很多bu无法修复此问题。

摇篮:

private static void googleAndFirebase(configuration) {
//gcm
configuration.implementation 'com.google.android.gms:play-services-gcm:16.0.0'

//Firebase libs
configuration.implementation 'com.google.firebase:firebase-core:16.0.7'
configuration.implementation 'com.google.firebase:firebase-auth:16.1.0'
configuration.implementation 'com.google.firebase:firebase-database:16.0.6'
configuration.implementation 'com.google.firebase:firebase-messaging:17.3.4'

//lib for map
configuration.implementation 'com.google.android.gms:play-services-maps:16.0.0'
configuration.implementation 'com.google.android.gms:play-services-location:16.0.0'

//google analytics
configuration.implementation 'com.google.android.gms:play-services-analytics:16.0.6'

//map utils
configuration.implementation 'com.google.maps.android:android-maps-utils:0.5' 
}

错误:

ERROR: In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[16.0.
5]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.

Dependency failing: com.google.android.gms:play-services-analytics-impl:16.0.6 -> com.google.android.gms:play-services-m
easurement-base@[16.0.5], but play-services-measurement-base version was 16.3.0.

The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art
ifact with the issue.
-- Project 'app' depends onto com.google.firebase:[email protected]
-- Project 'app' depends onto com.google.android.gms:[email protected]
-- Project 'app' depends onto com.google.firebase:[email protected]
-- Project 'app' depends onto com.google.android.gms:[email protected]
-- Project 'app' depends onto com.google.firebase:[email protected]
-- Project 'app' depends onto com.google.android.gms:[email protected]
-- Project 'app' depends onto com.google.android.gms:[email protected]
-- Project 'app' depends onto com.google.firebase:[email protected]
-- Project 'app' depends onto com.google.android.gms:[email protected]
-- Project 'app' depends onto com.google.android.gms:[email protected]

For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep
endency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at https://
github.com/google/play-services-plugins and disable by adding "googleServices { disableVersionCheck = false }" to your b
uild.gradle file

我已经尝试了这里提到的解决方案但是我的问题没有解决。

请让我知道确切的问题是什么

德州潘迪

如firebase文档中明确提到的。

configuration.implementation'com.google.firebase:firebase-core:16.0.7'

正在证明谷歌分析

我们建议从com.google.firebase:firebase-core开始,它提供Google Analytics for Firebase功能。

而且您还在使用。

configuration.implementation'com.google.android.gms:play-services-analytics:16.0.6'

这是造成该问题的原因。两者都使用google analytic。因此,您应该使用任何一个来分析您的应用程序。

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

在项目“应用”中,已解析的Google Play服务库依赖项依赖于另一个版本

...“ app”中的android项目已解决的Google Play服务库依赖项依赖于另一个版本

错误:在“应用”项目中,已解析的Google Play服务库依赖项依赖于另一个版本

错误:在项目“应用”中,已解析的Google Play服务库依赖项依赖于另一个版本的确切版本,同时集成了一个信号

使用依赖于另一个服务中的服务的管道

如何解决错误:在项目“应用”中已解决的Google Play服务库依赖性

如何使静态导入的库依赖于CMake中的另一个静态导入的库?

在cmake中,如何使一个目标依赖于另一个目标?

如何使 gradle 项目依赖于另一个 gradle 项目

构造对象,其属性之一依赖于另一个。在C ++中

使下拉列表依赖于MVC Core中的另一个下拉列表

如何使参数的默认值依赖于另一个参数(在Python中)?

NodeJS:我的节点文件依赖于另一个文件中的变量

更新 Excel 中依赖于首先更新的另一个工作簿的数据

如何在RxJS中创建依赖于另一个Observable的Observable

过滤器产品依赖于本机Redux中的另一个ACTION

依赖于Rust中另一个泛型的泛型类型

验证依赖于 Django 表单中另一个 DateField 数据的 DateField 数据

创建依赖于 Django 中另一个模型的模型 ChoiceField

一个应用程序可以依赖于另一个加载项-Appsource应用程序

两个异步任务-一个依赖于python中的另一个

一个系统中的文件可以依赖于另一个系统中的文件吗?

python中的约束优化,其中一个变量依赖于另一个变量

Openerp 7中的一个选择字段通过语法和示例依赖于另一个

列出Yum中依赖于另一个已安装软件包的软件包

dpkg-shlibdeps:错误:在打包依赖于另一个程序包的程序包时找不到.so所需的库

如何使用Jenkins部署依赖于GIT上另一个项目的项目?

初始化依赖于另一个应用程序EJB的EJB的模式

MYSQL:如何自动删除表中依赖于另一个表中的记录的行