android - 如何模拟 Nexus 4?

标签 android avd emulation

是否可以创建一个 AVD 来模拟 Nexus 4?

我正在使用 Eclipse,我很确定我已经更新了所有 SDK 工具等,以及 4.2 SDK/系统镜像等。

但是,当我打开 AVD 管理器添加新的 AVD 时,似乎不再能够输入自定义分辨率/密度等。有一个包含多个设备的下拉列表,但没有 Nexus 4,也没有通用分辨率为 768x1200 的版本。

我是不是漏掉了一些明显的东西?

在此先感谢您的帮助!

最佳答案

将您的 ADT 更新到版本 21 之后。

在旧版本中,如果您想要自定义设备配置(如果您想要 Nexus 4),每次都必须设置添加自定义屏幕。

在ADT21版本中你可以通过以下方式完成这件事

open AVD Manager, u can define your custom screen in "Device Definition"

备选方案(更简单的方法)

in Newest Version you Don't Need to Set Custom Device Configurations from the above Suggestion as much easier way is available for it. you >Just Have to Make Emulator With your Device Configurations and after you will see those Configurations with Emulator Name Inside Graphical Layout of XML

就像在使用名称为“Nexus7_Android_4.2”的 Android 4.2 创建我的 Nexus7 模拟器之后,我将自动在 xml 的图形布局中获取此设备配置。

下面是它的屏幕截图。

enter image description here

希望对您有所帮助。

关于android - 如何模拟 Nexus 4?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13839363/

相关文章:

Android TV 应用程序 - 无法使用 Remote 选择列表项

android - Android Studio AVD Manager 中的 SD 卡路径更改重置

将 HtmlUnit JAR 添加到 Eclipse 构建路径后,Android 项目变得非常慢

android - JobService中jobFinished和onStopJob的交互

android - 如何设置 llvm-symbolizer?

android - 对话框布局显示不正确

android - 如何从 adb 设备名称中获取 Android AVD 名称

Android 模拟器 - 错误消息 'Unfortunately browser stopped working'

java - 按下按钮后 Android 模拟器屏幕变为空白

应用国家/地区过滤器时,Android google play 支持/不支持设备列表