gpt4 book ai didi

android - 谷歌认证版本与谷歌地图冲突

转载 作者:行者123 更新时间:2023-11-30 00:10:29 25 4
gpt4 key购买 nike

我正在关注 the official Google authentication process .我的应用已经在使用最新版本的 Google map 。

项目

dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.gms:google-services:3.1.2'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}

应用

apply plugin: 'com.google.gms.google-services'
....
implementation 'com.google.android.gms:play-services-maps:11.8.0'
implementation 'com.google.android.gms:play-services-auth:11.8.0'

map 下有一条红线,弹出窗口说它找到了 11.8.0 和 11.4.2。构建错误消息类似于,

Error: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 11.4.2.

如果我注释掉 apply plugin: 'com.google.gms.google-services',构建错误就消失了,但官方文档告诉我添加它。

我该如何解决这个问题?

最佳答案

在项目级build.gradle的dependencies中添加如下一行:

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

有关完整的工作示例,请查看 following project在 github 上。

检查 ':app:processDebugGoogleServices' , Android Studio Gradle: Error:Execution failed for task ':app:processDebugGoogleServices'.

希望对您有所帮助。

关于android - 谷歌认证版本与谷歌地图冲突,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48221238/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com