Oreo Emulator没有适用于Maps API的Google Play服务 [英] Oreo Emulator doesn't have Google Play Services for Maps API

查看:72
本文介绍了Oreo Emulator没有适用于Maps API的Google Play服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Android和Android Studio的新手,所以我正在为此进行Udemy课程.

I'm a newb to Android and Android Studio so I'm doing a Udemy course on it.

本课程目前正处于探索Android API的地步.但是,Android 8.0.0模拟器没有Google Play服务,没有Google Play,我也无法安装它...我已经按照几个教程安装了Play服务,包括下载一个zip并将其拖动到模拟器.

The course is now at the point where Android API's are being explored. The Android 8.0.0 Emulator however, does not have Google Play Services, and without Google Play I have no way of installing it... I have followed a couple of tutorials to get play services installed which involves downloading a zip and dragging it to the emulator.

提示我安装后,每次都会失败...

After prompting me to install it just failed each time...

我已经使用Google Maps模板创建了一个新的Android Studio项目并创建了API密钥. 在构建应用程序时,这是我得到的屏幕:

I have created a new Android Studio project with the Google Maps template and created API keys. When building the app this is the screen I get:

值得注意的是,单击更新不会执行任何操作...

Notably clicking update doesn't do anything...

有人知道我可以如何使用Google Maps API吗?

Does anyone know how I can go about using Google Maps API's?

推荐答案

如果您的AVD支持更新Google Play服务,则您应该能够在模拟器设置屏幕上更新Play服务:

If your AVD supports updating Google Play Services, you should be able to update Play Services from the emulator settings screen:

如果不支持,请创建一个新的AVD,表明它确实支持更新Google Play服务,然后重试.支持Google Play的系统映像在选择器中带有(Google Play)后缀:

If it does not, create a new AVD that indicates it does support updating Google Play Services, and try again. System images that support Google Play have a (Google Play) suffix in the chooser:

这篇关于Oreo Emulator没有适用于Maps API的Google Play服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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