我正在尝试为Android添加Places SDK。
我正在遵循以下文档 https://developers.google.com/places/android-sdk/start 和 https://developers.google.com/places/android-sdk/client-migration
不幸的是,我无法添加依赖项"实现'com.google.android.libraries.places:places:2.2.0'">
我已经浏览了以下链接。但是没有用。请帮我解决这个问题。
无法解析: com.google.android.libraries.places:1.0.0:
Google 的新地点库(实现"com.google.android.libraries.places:1.0.0"(无法解析
最后,我找到了解决问题的方法。
我通过安装兼容性库解决了它。
跟着这个。https://developers.google.com/places/android-sdk/client-migration
以下两个步骤解决了我的问题。
-
复制places_compat_compatify.sh的内容,并另存为文件到本地计算机。
-
使用以下命令运行兼容性脚本
./places_compat_compatify.sh 2.1.0
在此之后,我可以成功运行我的项目并可以放置API。
谢谢