• <bdo id='aXlqN'></bdo><ul id='aXlqN'></ul>

        <small id='aXlqN'></small><noframes id='aXlqN'>

        <tfoot id='aXlqN'></tfoot>
        <i id='aXlqN'><tr id='aXlqN'><dt id='aXlqN'><q id='aXlqN'><span id='aXlqN'><b id='aXlqN'><form id='aXlqN'><ins id='aXlqN'></ins><ul id='aXlqN'></ul><sub id='aXlqN'></sub></form><legend id='aXlqN'></legend><bdo id='aXlqN'><pre id='aXlqN'><center id='aXlqN'></center></pre></bdo></b><th id='aXlqN'></th></span></q></dt></tr></i><div id='aXlqN'><tfoot id='aXlqN'></tfoot><dl id='aXlqN'><fieldset id='aXlqN'></fieldset></dl></div>

      1. <legend id='aXlqN'><style id='aXlqN'><dir id='aXlqN'><q id='aXlqN'></q></dir></style></legend>

        如何使用硬件配置文件从命令行创建 AVD?

        时间:2023-08-29

      2. <i id='uh6qq'><tr id='uh6qq'><dt id='uh6qq'><q id='uh6qq'><span id='uh6qq'><b id='uh6qq'><form id='uh6qq'><ins id='uh6qq'></ins><ul id='uh6qq'></ul><sub id='uh6qq'></sub></form><legend id='uh6qq'></legend><bdo id='uh6qq'><pre id='uh6qq'><center id='uh6qq'></center></pre></bdo></b><th id='uh6qq'></th></span></q></dt></tr></i><div id='uh6qq'><tfoot id='uh6qq'></tfoot><dl id='uh6qq'><fieldset id='uh6qq'></fieldset></dl></div>
            <bdo id='uh6qq'></bdo><ul id='uh6qq'></ul>
            <legend id='uh6qq'><style id='uh6qq'><dir id='uh6qq'><q id='uh6qq'></q></dir></style></legend>
              <tbody id='uh6qq'></tbody>

                <tfoot id='uh6qq'></tfoot>
              1. <small id='uh6qq'></small><noframes id='uh6qq'>

                  本文介绍了如何使用硬件配置文件从命令行创建 AVD?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  目前我一直在通过 Android Studio UI 的 Tools > 管理 AVD.AVD 管理器.这适用于创建具有特定硬件配置文件(我在 XML 文件中)的 AVD,但我发现 AVD 经常以某种方式中断.AVD 旁边是Repair".UI 中的选项,并且我添加的硬件配置文件被删除,导致我再次输入它.这是痛苦和频繁的,所以我想通过命令行自动化它.

                  Currently I've been managing AVDs via the Android Studio UI at Tools > AVD Manager. This works for creating an AVD with a specific hardware profile (that I have in an XML file), but I find that frequently an AVD is breaking somehow. Next to the AVD is a "Repair" option in the UI, and the hardware profile I've added gets removed, causing me to enter it all in again. This is painful and frequent so I'd like to automate it via the command line.

                  我可以使用 avdmanager create avd -n test1 -k "system-images;android-29;google_apis;x86" 之类的命令创建 AVD,但它会提示输入自定义硬件,并且如果我选择自定义硬件配置文件,它会提示我输入每个单独的属性.这比使用 UI 更耗时.

                  I can create an AVD using a command like avdmanager create avd -n test1 -k "system-images;android-29;google_apis;x86", but it prompts for custom hardware, and if I choose a custom hardware profile it prompts me to enter in each individual property. This is more time-consuming than using the UI.

                  此来源 声称android 工具允许您为虚拟设备设置硬件仿真选项",并提供了一个可以修改的属性列表,但没有说明如何通过命令设置这些属性.

                  This source claims "the android tool lets you set hardware emulation options for virtual device", and provides a nice list of properties than can be modified, but no explanation of how these can be set via a command.

                  有没有什么方法可以从命令行为 AVD 设置硬件配置文件,而无需手动回答提示?

                  Is there some way to set the hardware profile for an AVD from the command line without manually answering prompts?

                  推荐答案

                  您能否尝试修改 AVD 配置文件 config.ini 以获得需要修改的所需 AVD.复制现有的 AVD,对硬件配置文件进行必要的更改并将其用作基础

                  Could you please try modifying the AVD configuration file config.ini for the required AVD that needs to be modified. Copy an existing AVD, make necessaryy changes to hardware profile and use it as base

                  参考:

                  https://developer.android.com/studio/run/managing-avds#copyavd

                  https://stuff.mit.edu/afs/sipb/project/android/docs/tools/devices/managing-avds-cmdline.html#hardwareopts

                  https://developer.android.com/studio/run/managing-avds#hardware-profile

                  这篇关于如何使用硬件配置文件从命令行创建 AVD?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:Windows 10 升级后 Genymotion 错误 下一篇:安装 Windows 10 周年更新后无法启动 Android 模拟器

                  相关文章

                  最新文章

                  <tfoot id='e2yeM'></tfoot>
                1. <i id='e2yeM'><tr id='e2yeM'><dt id='e2yeM'><q id='e2yeM'><span id='e2yeM'><b id='e2yeM'><form id='e2yeM'><ins id='e2yeM'></ins><ul id='e2yeM'></ul><sub id='e2yeM'></sub></form><legend id='e2yeM'></legend><bdo id='e2yeM'><pre id='e2yeM'><center id='e2yeM'></center></pre></bdo></b><th id='e2yeM'></th></span></q></dt></tr></i><div id='e2yeM'><tfoot id='e2yeM'></tfoot><dl id='e2yeM'><fieldset id='e2yeM'></fieldset></dl></div>

                  1. <legend id='e2yeM'><style id='e2yeM'><dir id='e2yeM'><q id='e2yeM'></q></dir></style></legend>
                  2. <small id='e2yeM'></small><noframes id='e2yeM'>

                      <bdo id='e2yeM'></bdo><ul id='e2yeM'></ul>