相关疑难解决方法(0)

Places类从Android播放服务9.2.0中删除

今天,我更新了谷歌播放服务到9.2.0.我收到了一个错误

com.google.android.gms.location.places.Places

未找到.这打破了两行

.addApi(Places.GEO_DATA_API)
.addApi(Places.PLACE_DETECTION_API)
Run Code Online (Sandbox Code Playgroud)

我可以在哪里找到GEO_DATA_API,PLACE_DETECTION_API

提前致谢.

android google-play-services

29
推荐指数
1
解决办法
7983
查看次数

选择性Google Play Services API无法查找课程

我已将播放服务更新到最新版本,目前版本为9.2.0,我也想使用选择性模块进行谷歌播放服务.

//    compile 'com.google.android.gms:play-services:9.2.0'
compile 'com.google.android.gms:play-services-maps:9.2.0'
compile 'com.google.android.gms:play-services-analytics:9.2.0'
compile 'com.google.android.gms:play-services-gcm:9.2.0'
compile 'com.google.android.gms:play-services-location:9.2.0'
Run Code Online (Sandbox Code Playgroud)

我遇到的问题是,现在进口如下:

import com.google.android.gms.location.places.Place;

import com.google.android.gms.location.places.AutocompleteFilter;
import com.google.android.gms.location.places.AutocompletePrediction;
import com.google.android.gms.location.places.Place;
import com.google.android.gms.location.places.PlaceBuffer;
import com.google.android.gms.location.places.Places;
Run Code Online (Sandbox Code Playgroud)

无法解决,尽管在他们的文档中声明位置服务也应该提供Places功能.

有人可以帮我解决这个问题吗?谢谢.

import android location google-play-services

9
推荐指数
1
解决办法
2436
查看次数

无法解析Places,Google Play服务

我已将Google Play服务的自由添加为:

编译'com.google.android.gms:play-services:6.5.87'

使用Google Places API,但仍无法解析以下"地方信息"界面:

  mGoogleApiClient = new GoogleApiClient
                .Builder(this)
                .addApi(Places.GEO_DATA_API)
                .addApi(Places.PLACE_DETECTION_API)
                .addConnectionCallbacks(this)
                .addOnConnectionFailedListener(this)
                .build();
Run Code Online (Sandbox Code Playgroud)

对于使用Google Places API,我必须使用哪个自由文件或作为单独的项目导入.它也没有在下面解决:

import com.google.android.gms.nearby

android google-places-api

4
推荐指数
1
解决办法
2589
查看次数