如何在Android 8的模拟器上通过Google Play Services 11使用Google Maps Android API [英] How to use Google Maps Android API by Google Play Services 11 on an Emulator with Android 8

查看:234
本文介绍了如何在Android 8的模拟器上通过Google Play Services 11使用Google Maps Android API的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Android 8模拟器上运行我的Google地图应用程序。
根据Google的建议,应该使用Google Play服务在版本11中提供的Google Maps Android API。

I want to run my Google Maps Application on an Android 8 Emulator. As Google is suggesting, one should use the Google Maps Android API provided by the Google Play Services in the Version 11.

为此,我将在我的gradle文件中编译'com.google.android.gms:play-services-maps:11.0.0'

For this I put compile 'com.google.android.gms:play-services-maps:11.0.0' in my gradle file.

当我用Android 8启动我的模拟器时,它只提供版本10.9.30的谷歌播放服务,并且地图没有显示出来。

When I start my emulator with android 8 its only providing google play services with version 10.9.30 and the map is not showing up.

我在Mac上运行带有android studio 2.3.3的模拟器。

I'm running the emulator with android studio 2.3.3 on Mac.

如何将我的Google Play服务更新到版本11为了使用Google Maps Android API?

How can I get my Google Play Services to version 11 updated in order to use Google Maps Android API?

预先感谢您!

Thank you in advance!

推荐答案

我使用Android Studio 3.0 Preview更新了我的模拟器。正如您在屏幕截图中看到的,Google Play服务已更新至11.0.55版。

I updated my emulator with Android Studio 3.0 Preview. As you can see in the screenshot the Google Play Services is updated to version 11.0.55.

还有我的档案文件,其中包含 compile'c​​om。 google.android.gms:play-services-maps:11.0.0'正在工作。

And also my grade file with compile 'com.google.android.gms:play-services-maps:11.0.0' is working now.

进一步,我使用 compileSdkVersion 26 buildToolsVersion26.0.0

另请参阅我的SDK平台和SDK工具设置:

Also see my settings for my SDK Platforms and SDK Tools:

这篇关于如何在Android 8的模拟器上通过Google Play Services 11使用Google Maps Android API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆