Android的 - 谷歌登录和播放服务版本incomptablity [英] Android - Google Login and Play Services version incomptablity

查看:789
本文介绍了Android的 - 谷歌登录和播放服务版本incomptablity的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在与谷歌登录和谷歌Play服务的一个奇怪的问题。
我跟着指示这里 https://developers.google.com/identity/登录/安卓/启动整合,并添加'com.google.gms:谷歌服务:1.5.0-β2我的build.gradle文件中。

I'm having a weird issue with Google Login and Google Play services. I followed the instructions here https://developers.google.com/identity/sign-in/android/start-integrating and added 'com.google.gms:google-services:1.5.0-beta2' to my build.gradle file.

然后我补充说,我们需要为我们的应用程序的文件的gradle这些应用程序播放服务库:

I then added these play services libraries that we need for our app in the app's gradle file:

编译com.google.android.gms:发挥服务地点:8.4.0
编译com.google.android.gms:播放服务,地图:8.4.0
编译com.google.android.gms:播放服务的健身:8.4.0
编译com.google.android.gms:发挥服务 - 分析:8.4.0
编译com.google.android.gms:发挥服务-auth的:8.4.0

但是,当我编译我得到这个错误:

But when I compile I get this error:

  • What went wrong: Execution failed for task ':app:processDebugGoogleServices'. Please fix the version conflict either by updating the version of the google-services plugin (information about the latest version is available at https://bintray.com/android/android-tools/com.google.gms.google-services/) or updating the version of com.google.android.gms to 8.3.0.

找到com.google.android.gms:发挥服务的健身:8.4.0,8.3.0,但是版本需要谷歌的服务插件

Found com.google.android.gms:play-services-fitness:8.4.0, but version 8.3.0 is needed for the google-services plugin.

什么混淆我是开发者文档说使用1.5.0版-β2插件和8.4版播放服务的Gradle,但不会让我编译。

What confuses me is that the developer docs say to use version 1.5.0-beta2 plugin and version 8.4 play services but gradle will not let me compile.

推荐答案

下面这个帖子有答案<一个href=\"https://stackoverflow.com/questions/34370603/version-conflict-updating-to-8-4-0/34375483#34375483\">Version冲突升级到8.4.0

我需要做两件事,

类路径com.android.tools.build:gradle:2.0.0-alpha5

类路径'com.google.gms:谷歌服务:2.0.0-素α5β1

和移动应用插件:'com.google.gms.google服务到文件的末尾

and to move apply plugin: 'com.google.gms.google-services' to the end of the file

这篇关于Android的 - 谷歌登录和播放服务版本incomptablity的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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