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

查看:351
本文介绍了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 Maps的UI.尽管我发现03/12的29.2.11发行版也包含UI更改,但此处的发行说明也是如此:

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天全站免登陆