无法将位置与最新的 google 播放服务 7.5.0 一起使用

Can not use Location with newest google play services 7.5.0

我的问题是:

我正在按照此处 https://developers.google.com/cloud-messaging/android/start 的新说明来实现我自己的 android GCM 应用程序。

而且,我有一个处理位置跟踪的代码部分的问题,它以前确实有效,但现在所有相关的导入都是 "does not exist"。例如:(错误:包 com.google.android.gms.location 不存在)

import com.google.android.gms.location.LocationListener;
import com.google.android.gms.location.LocationRequest;
import com.google.android.gms.location.LocationServices;

我做过的所有事情:

我试过的

所以,你以前面对过吗?以及如何解决?

如果您将类路径 'com.google.gms:google-services:1.3.0-beta1' 设置为顶级构建中的依赖项
将插件 apply plugin: 'com.google.gms.google-services' 应用到应用构建根目录
添加 compile "com.google.android.gms:play-services:7.5.+" 作为应用程序构建依赖项,同步后您会看到消息 error instal support reposotory 只需单击它并从向导安装存储库

这个问题开放很久了。老实说,我试图为此给出最佳答案,但我做不到。我必须在截止日期前切换到使用旧版本。现在,回到它,它可以正常工作。