Android 模拟 Nexus 7

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11281270/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 06:42:21  来源:igfitidea点击:

Emulate Nexus 7

androidandroid-emulator

提问by nhaarman

I want to emulate the Nexus 7, but I can't figure out what values to use.
Skin: Built-in or custom resolution? What hardware properties should I use?

我想模拟 Nexus 7,但我不知道要使用什么值。
皮肤:内置分辨率还是自定义分辨率?我应该使用哪些硬件属性?

回答by Rawkode

If you're running the latest version of the plugin (20) then when you're creating your new device there is an option within the Skin drop-down list for "WXGA800-7in"

如果您运行的是最新版本的插件 (20),那么当您创建新设备时,“WXGA800-7in”的皮肤下拉列表中有一个选项

Abstract LCD Densit: 213
Hardware Back/Home keys: no
Keyboard lid support: no
Max VM Heap size: 48
Device ram: 1024

回答by Baranitharan Selvasundaram

In the latest version of plugin (21.1.0), You can emulate the Nexus 7 specifically.

在最新版本的插件(21.1.0)中,您可以专门模拟Nexus 7。

When creating a new device in the AVD manager, You can select the

在 AVD 管理器中创建新设备时,您可以选择

"Nexus 7(7.27",800 x 1280: tvdpi)"

"Nexus 7(7.27",800 x 1280: tvdpi)"

option in the Device dropdown.

设备下拉菜单中的选项。

This creates Nexus 7 emulator.

这将创建 Nexus 7 模拟器。

回答by Darshan Rivka Whittle

You can't emulate the Nexus 7 specifically, but if you target API level 16 and set the resolution to 800x1280, you'll have an environment pretty similar to it.

您无法专门模拟 Nexus 7,但如果您针对 API 级别 16 并将分辨率设置为 800x1280,您将拥有与它非常相似的环境。

回答by MarkH

I've found that after selecting WXGA800-7in I then need to delete the "Device ram size" option (otherwise I get the "Failed to allocate memory: 8" error mentioned) and then add the "GPU emulation" option with value yes to remove the "Skipped xx frames!" choreographer messages.

我发现在选择 WXGA800-7in 后,我需要删除“设备内存大小”选项(否则我会收到“无法分配内存:8”错误),然后添加值为“是”的“GPU 仿真”选项删除“跳过 xx 帧!” 编舞消息。