首页 > 解决方案 > Android Studio:添加 Google Places 依赖项失败

问题描述

我目前正在关注将 Google Places SDK 添加到我的 Android 应用程序的教程。但是,当我将以下行添加到我的 build.gradle (:app) 时,我的应用程序将无法运行:

实施 'com.google.android.libraries.places:places:2.4.0'

我遇到以下错误:

任务“:app:dataBindingMergeDependencyArtifactsDebug”执行失败。无法解析配置 ':app:debugCompileClasspath' 的所有文件。找不到 com.google.firebase:firebase-encoders-json:12.0.1。要求:项目:app > com.google.android.datatransport:transport-backend-cct:2.3.0

我怎样才能解决这个问题?我已经为我的项目创建并添加了一个 API 密钥,现在我迷路了。

标签: androidandroid-studiogoogle-play-servicesgoogle-places-apigoogle-places

解决方案


推荐阅读