较旧的位置服务和更新的 GCM 推送 android

Older Location service & updated GCM push in android

我使用的是 depricated 版本的定位服务

   public class UserLocation implements LocationListener, GooglePlayServicesClient.ConnectionCallbacks, GooglePlayServicesClient.OnConnectionFailedListener

更新版本的 GCM 推送

    extends GcmListenerService 

gradle如下

compile 'com.google.android.gms:play-services-location:6.5.87'
compile 'com.google.android.gms:play-services-gcm:7.5.0'

但无法同步项目收到一些错误,如

错误:配置项目“:app”时出现问题。

Could not resolve all dependencies for configuration ':app:_debugCompile'. Could not find com.google.android.gms:play-services-location:6.5.87build.gra. Searched in the following locations: https://repo1.maven.org/maven2/com/google/android/gms/play-services-location/6.5.87build.gra/play-services-location-6.5.87build.gra.pom https://repo1.maven.org/maven2/com/google/android/gms/play-services-location/6.5.87build.gra/play-services-location-6.5.87build.gra.jar Required by: incidentchanger:app:unspecified

没有找到任何替代方法使其工作,最后更新了位置 api 和相关代码 感谢 Whosebug :)