Android Studio 错误库 com.google.android.gms:play-services-measurement-base [英] Android Studio Error The library com.google.android.gms:play-services-measurement-base

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

问题描述

我是 Android Studio 的新手.

How to this i am new on Android Studio.

com.google.android.gms:play-services-measurement-base 库正在被 [[15.0.0,15.0.0], [15.0.2,15.0.2]] 的其他各种库请求,但解析为 15.0.2.禁用插件并使用 ./gradlew :app:dependencies 检查你的依赖树.

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

推荐答案

据报道 here:

您需要将后一个依赖项的版本更新到 15.0.2.这解决了 Google 服务 Gradle 插件 3.3.0 版报告的问题:库 com.google.android.gms:play-services-measurement-base 正在被 [[15.0.0,15.0.0], [15.0.2,15.0.2]],但解析为 15.0.2...

You will need to update the version of the latter dependency to 15.0.2. This addresses the issue where version 3.3.0 of the Google Services Gradle plugin reports: The library com.google.android.gms:play-services-measurement-base is being requested by various other libraries at [[15.0.0,15.0.0], [15.0.2,15.0.2]], but resolves to 15.0.2...

然后将您的 google play 服务插件更新到 3.3.0

Then update your google play services plugin to 3.3.0

classpath 'com.google.gms:google-services:3.3.0'

并将依赖项更新到 15.0.2.

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

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