简体   繁体   English

Android模拟器缺少硬件配置文件

[英]Android emulator missing hardware profile

I am using android emulator for testing my application developing using eclipse in various devices, I want to test my application in large screen devices like Samsung galaxy Tab Neo , For that I create a new hardware profile that matches to Samsung galaxy Tab Neo and used this hardware profile in an emulator, The emulator works fine for first time and its damaged after opening later,I found that the hardware profile I created for Samsung galaxy Tab Neo is missing, How can I store this hardware profile permanently in my pc? 我正在使用android仿真器来测试在各种设备上使用Eclipse开发的应用程序,我想在大屏幕设备(如Samsung galaxy Tab Neo)中测试我的应用程序,为此,我创建了一个与Samsung galaxy Tab Neo匹配的新硬件配置文件,并使用了模拟器中的硬件配置文件,该模拟器第一次正常运行,以后打开后损坏了,我发现我为三星银河Tab Neo创建的硬件配置文件丢失了, 如何将该硬件配置文件永久存储在我的PC中?

在此处输入图片说明

You can "Export" hardware profile(s) after creation (in menu appeared on right mouse button click on profile in list). 您可以在创建后“导出”硬件配置文件(在菜单中,出现在鼠标右键单击列表中的配置文件)。 It will be "devices.xml" file in specified folder. 将是指定文件夹中的“ devices.xml”文件。 After disappearing profile in Studio you can press "Import Hardware Profiles" button below list and choose saved "devices.xml". 在Studio中消失配置文件后,您可以按列表下方的“导入硬件配置文件”按钮,然后选择保存的“ devices.xml”。

My hardware profiles disappear after each machine (Windows Server 2016) reboot. 每台计算机(Windows Server 2016)重新启动后,我的硬件配置文件均消失。

This might be a bug, you could try one of the following: 这可能是一个错误,您可以尝试以下一种方法:

(1) Your AVD instance may work if you start it by your own (1)如果您自己启动AVD实例,则它可能会起作用

  • Search for AVD Manager in your Android directory and execute it outside your ID as administrator. 在您的Android目录中搜索AVD Manager,然后以管理员身份在ID之外执行它。

(2) Try to clone an existing device definition (2)尝试克隆现有设备定义

  • In your AVD Manager instance from (1) you should see the tab "Device Definitions". 在(1)的AVD Manager实例中,您应该看到选项卡“设备定义”。 Choose your device there and click "Clone". 在此处选择您的设备,然后单击“克隆”。 You now have a modifiable copy where you can adjust your settings and use it later on as your running virtual device. 现在,您具有可修改的副本,您可以在其中调整设置,并在以后将其用作运行中的虚拟设备。

(3) On Windows the RAM setting can cause problems (3)在Windows上,RAM设置可能会导致问题

"On Windows, emulating RAM greater than 768M may fail depending on the system load. Try progressively smaller values of RAM if the emulator fails to launch." “在Windows上,仿真RAM大于768M可能会失败,具体取决于系统负载。如果仿真器无法启动,请尝试逐渐减小RAM的值。”

Hope something helps. 希望有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM