![](/img/trans.png)
[英]Can't Import com.google.android.gms.location.LocationServices
[英]Can't Import gms Location Place
將gms:play-services-location
從9.0.2更新到9.6.1后,我無法導入com.google.android.gms.location.places.Place
,也無法使用PlaceAutoComplete
。
它是否已棄用或已從Google Play服務位置刪除?
根據拆分依賴項列表 ,要包含places API,必須包含依賴項
compile 'com.google.android.gms:play-services-places:9.6.1'
僅在Google Play服務9.2.0中添加了places
依賴關系-在此之前,它是maps
依賴關系的一部分,這是對location
的要求(版本9.6.0也刪除了對maps
location
的依賴關系),因此為什么以前你包括location
你也有places
。
在您的gradle中添加此版本
編譯'com.google.android.gms:play-services:7.3.0'
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.