无法解决:com.google.android.libraries.places:1.0.0:

问题描述 投票:5回答:3

我想使用Google Places API,但我无法将项目与"com.google.android.libraries.places:1.0.0:"依赖项同步。如何在我的项目中添加地点?

android google-places
3个回答
25
投票

documentation中的库我错了,使用它,它有效。几天前我遇到了同样的问题,向他们提供了关于他们仍未解决的文档的反馈

implementation 'com.google.android.libraries.places:places:1.0.0'

您可以看到如何在here上添加地点自动完成功能

编辑:似乎他们最终修复了文档


1
投票

试着改变

compileOnly "com.facebook.react:react-native:+"

通过

api "com.facebook.react:react-native:+"

0
投票

我也坚持同样的问题,现在我删除了这个问题。根据谷歌的说法,“Places SDK for Android的v1.0.0版本引入了一个全新的静态库,其中包含更新的功能.Google SDK for Android(Google Play Services 16.0.0)的Google Play服务版本已被弃用2019年1月29日,将于2019年7月29日关闭。“

添加以下依赖项将起作用...

实现'com.google.android.libraries.places:places:1.0.0'

有关更多信息,请访问https://developers.google.com/places/android-sdk/client-migration

© www.soinside.com 2019 - 2024. All rights reserved.