Android 在lib模块中更新googleplay服务

Android 在lib模块中更新googleplay服务,android,google-play-services,Android,Google Play Services,将旧项目的Google Play Services插件更新为 com.google.gms:googleservices:3.0.0, 我遇到了以下问题: 我的项目有一个由其他应用程序模块共享的lib模块,其gradle构建文件为: 在构建项目时,我遇到以下错误: Error:(54, 41) error: package com.google.android.gms.maps.model does not exist Error:(770, 19) error: cannot find

将旧项目的Google Play Services插件更新为
com.google.gms:googleservices:3.0.0
, 我遇到了以下问题:

我的项目有一个由其他应用程序模块共享的lib模块,其gradle构建文件为:



在构建项目时,我遇到以下错误:

Error:(54, 41) error: package com.google.android.gms.maps.model does not exist

Error:(770, 19) error: cannot find symbol class LatLng
恢复到:

compile 'com.google.android.gms:play-services-location:9.0.0'
compile 'com.google.android.gms:play-services-wearable:9.0.0'
一切正常


有什么想法吗?

看起来LatLng课程已经搬到了一个新的位置。将以下内容添加到生成文件:

compile 'com.google.android.gms:play-services-maps:10.0.1'

这将下载包含该类的组件,您的编译应该会成功。

工作非常出色!谢谢
compile 'com.google.android.gms:play-services-maps:10.0.1'