【发布时间】:2017-04-01 11:02:10
【问题描述】:
我正在尝试开发基于 google place API 的应用程序。当我尝试使用时
Place place=PlacePicker.getPlace(data,this);
或
GooglePlayServicesUtil.getErrorDialog(e.getConnectionStatusCode(), MainActivity.this, 0);
显示不推荐使用 getPlace() 时出现错误。我已经尝试过
getPlace(Context, Intent)
但它不起作用。请提出解决方案。提前致谢!
【问题讨论】:
-
您在使用新的 GoggleApiClient 吗?
-
是的,我正在使用新的 GoogleApiClient
-
您是否在 gradle 依赖项中添加了 compile 'com.google.android.gms:play-services-places:9.6.1' 的内容?
-
“没有工作”是一个非常模糊的描述,请更详细,究竟是什么不起作用..
-
是的,我添加了compile 'com.google.android.gms:play-services-places:9.6.1'
标签: android google-maps-api-3 google-places-api google-places