Google play services maps 9.2.0 问题
Google play services maps 9.2.0 issue
我的 Android 应用程序通过在我的 gradle ...
中包含以下内容,已成功使用地图
compile project(':googleplayservices_lib')
我的 SDK 管理员说我有版本 32,这似乎是最新的。所以有了这个,一切都很好。
现在我正在增强应用程序,我看到一些帖子说我现在可以在添加标记时使用 zIndex 参数来控制 Z 索引。但要做到这一点,我必须将以下内容添加到我的 gradle 中。 . .
compile 'com.google.android.gms:play-services-maps:9.2.0'
所以现在我的 gradle 文件有这个依赖项部分。 . .
dependencies {
compile project(':library')
compile project(':googleplayservices_lib')
compile files('libs/gson-2.2.4.jar')
compile 'com.android.support:appcompat-v7:22.0.0'
compile 'com.android.support:design:22.2.1'
compile 'com.google.android.gms:play-services-maps:9.2.0'
}
现在我可以设置 zIndex,但这个新版本显然带有重大更改。例如以下不再有效。 . .
map = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))
.getMap();
地图是谷歌地图。编译器无法解析 getMap() 方法。我的问题是我似乎无法找到关于这个新地图修订版的文档,其中讨论了这个新版本的重大更改。有谁知道我在哪里可以找到这样的信息?
My Android app has been successfully using maps by including the following in my gradle
据推测,这是 Play Services SDK 的旧 Eclipse 库项目版本的项目内副本。理想情况下,当您移动到 Android Studio 时,您会把它移到 Play Services SDK 工件上。
My SDK manager says I have rev 32 which appears to be the latest
由于您使用的是本地项目内副本,SDK 管理器报告的内容并不直接相关。
此外,Google 至少在过去几个月没有维护该库项目,因此对于使用最新版本的 Play 服务 SDK,该库的 "latest" 毫无意义.
So now my gradle file has this dependencies section . . .
我很惊讶编译。删除 compile project(':googleplayservices_lib')
。如果您使用的是 Maps V2 以外的部分 Play Services SDK,use appropriate and compatible artifacts for those APIs as well.
The compiler cannot resolve the getMap() method.
getMap()
大约在 20 个月前被弃用,取而代之的是 getMapAsync()
.
My problem is that I can't seem to locate the documentation on this new maps revision where it discusses breaking changes for this new version.
Maps V2 发行说明在 the Play Services documentation. A subset of Maps V2 release notes are incorporated in the overall Play Services release notes.
我的 Android 应用程序通过在我的 gradle ...
中包含以下内容,已成功使用地图compile project(':googleplayservices_lib')
我的 SDK 管理员说我有版本 32,这似乎是最新的。所以有了这个,一切都很好。
现在我正在增强应用程序,我看到一些帖子说我现在可以在添加标记时使用 zIndex 参数来控制 Z 索引。但要做到这一点,我必须将以下内容添加到我的 gradle 中。 . .
compile 'com.google.android.gms:play-services-maps:9.2.0'
所以现在我的 gradle 文件有这个依赖项部分。 . .
dependencies {
compile project(':library')
compile project(':googleplayservices_lib')
compile files('libs/gson-2.2.4.jar')
compile 'com.android.support:appcompat-v7:22.0.0'
compile 'com.android.support:design:22.2.1'
compile 'com.google.android.gms:play-services-maps:9.2.0'
}
现在我可以设置 zIndex,但这个新版本显然带有重大更改。例如以下不再有效。 . .
map = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))
.getMap();
地图是谷歌地图。编译器无法解析 getMap() 方法。我的问题是我似乎无法找到关于这个新地图修订版的文档,其中讨论了这个新版本的重大更改。有谁知道我在哪里可以找到这样的信息?
My Android app has been successfully using maps by including the following in my gradle
据推测,这是 Play Services SDK 的旧 Eclipse 库项目版本的项目内副本。理想情况下,当您移动到 Android Studio 时,您会把它移到 Play Services SDK 工件上。
My SDK manager says I have rev 32 which appears to be the latest
由于您使用的是本地项目内副本,SDK 管理器报告的内容并不直接相关。
此外,Google 至少在过去几个月没有维护该库项目,因此对于使用最新版本的 Play 服务 SDK,该库的 "latest" 毫无意义.
So now my gradle file has this dependencies section . . .
我很惊讶编译。删除 compile project(':googleplayservices_lib')
。如果您使用的是 Maps V2 以外的部分 Play Services SDK,use appropriate and compatible artifacts for those APIs as well.
The compiler cannot resolve the getMap() method.
getMap()
大约在 20 个月前被弃用,取而代之的是 getMapAsync()
.
My problem is that I can't seem to locate the documentation on this new maps revision where it discusses breaking changes for this new version.
Maps V2 发行说明在 the Play Services documentation. A subset of Maps V2 release notes are incorporated in the overall Play Services release notes.