Android Studio 虚拟设备扩展控件中的位置菜单 [英] Location menu in extended controls of Android Studio virtual device

查看:57
本文介绍了Android Studio 虚拟设备扩展控件中的位置菜单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将一个 .gpx 文件导入我的虚拟设备(这是我今天第一次尝试的),但我遇到了一个问题,我无法在其他任何地方找到任何参考.我要么有一段时间错过了一些应该很明显的东西,要么我的特定构建存在问题导致问题.我安装了 Android Studio 3.5.3,并且尝试了多种不同的虚拟设备.

I need to import a .gpx file to my virtual device (something I'm attempting for the first time today), but I'm having a problem I can't find any reference to anywhere else. I'm either having a moment and missing something that should be obvious or there's an issue with the specific build I have that's causing an issue. I have Android Studio 3.5.3 installed and I've tried multiple different virtual devices.

我可以在网上找到的标题中引用的菜单页面的所有引用如下所示:

All references to the menu page referenced in my title that I can find online look like this:

虽然我的那个页面是这样的:

While my version of that page looks like this:

导入 GPX/KML"按钮始终显示为灰色.我在这里错过了什么?

That "Import GPX/KML" button always appears to be greyed out. What am I missing here?

推荐答案

最终找到了这个问题的原因和解决方案.该问题是由 Android 模拟器版本引起的,该版本更新了位置设置以包含基于 Google 地图的 UI.此处的发行说明,尽管我发现 03/12 的 29.2.11 版本也包含 UI 更改:https://androidstudio.googleblog.com/2019/12/emulator-29212-stable-google-maps-ui.html.在我的 Windows 10 计算机上,这也删除了导入 GPX 文件的选项(不确定这是 Google 有意选择还是错误).不确定它是否会影响 Linux 或 Mac 用户,但我在多个 Windows 10 设备上观察到了这个问题.

Eventually found the cause of this and a solution. The issue was caused by an Android emulator release that updated the Location settings to include a Google Maps based UI. Release notes here, though I've found the 29.2.11 release on 03/12 also contained the UI change: https://androidstudio.googleblog.com/2019/12/emulator-29212-stable-google-maps-ui.html. On my Windows 10 computers this also removed the option of importing a GPX file (not sure if this was an intentional choice by Google or a bug). Not sure if it will affect Linux or Mac users but I've observed the issue on multiple Windows 10 devices.

我找到的解决此问题的方法是将我的模拟器降级到 29.2.1.该版本可以在这里找到:

The fix I found for the issue was to downgrade my emulator to 29.2.1. That version can be found here:

http://dl.google.com/android/repository/emulator-darwin-5889189.zip

http://dl.google.com/android/repository/emulator-windows-5889189.zip

http://dl.google.com/android/repository/emulator-linux-5889189.zip

在 Windows 中,接下来转到 C:\Users[用户名]\AppData\Local\Android\Sdk\emulator.谨慎处理的人可以备份此文件夹,但无论哪种方式都需要 package.xml 文件,并且可以移动或删除其他所有内容.编辑 XML 中的详细信息以匹配下载的模拟器的版本号.将下载的文件与 package.xml 一起复制到此位置.然后确保在打开 Android Studio 时不要再次下载更新.

In Windows, next go to C:\Users[username]\AppData\Local\Android\Sdk\emulator. Those of a cautious disposition can backup this folder, but either way the package.xml file will be needed and everything else can be moved or deleted. Edit the details in the XML to match the version number of the downloaded emulator. Copy the downloaded files to this location along with the package.xml. Then just make sure not to download the update again when Android Studio is opened.

这篇关于Android Studio 虚拟设备扩展控件中的位置菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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