集成Google第三方登录时出现的异常

本文介绍了如何解决在Android开发中遇到的Google服务版本冲突问题。提供了两种解决方案:一是将依赖项版本降级;二是查询并更新到谷歌服务的最新版本。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Error:Execution failed for task ':app:processAndroidmarketDebugGoogleServices'.
> 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 9.0.0.

解决这个问题可以按照上文中提示的那样子来:

思路一

直接将程序中的依赖降级为compile 'com.google.android.gms:play-services-auth:9.0.0'
不过这种方式很明显会使得第三方的一些新的实现方案没有办法使用。

思路二

按照错误信息中说的那样,到https://bintray.com/android/android-tools/com.google.gms.google-services/ 中查询最新版本的谷歌服务的版本,然后将项目中的版本更新到指定的版本。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值