Android 模拟器不再启动

标签 android android-emulator

我在 OSX Mountain Lion 上运行。我最近从 Eclipse 安装了最新版本的 Eclipse 和 Android SDK。我也通过 Eclipse 更新了 SDK,下载了 Extras、Android 2.2 (API 8)、Android 4.1.2 (API 16) 和 Tools 文件夹中的所有内容。

最后我可以通过创建一个设备来运行模拟器,但是它非常慢(我有 250gb ssd 硬盘驱动器 + 16gb RAM),我什至无法运行我拥有的应用程序。我试图修改模拟器的一些选项,现在显然我不能再运行任何东西了。一旦我尝试运行程序 (Hello World),我就会收到以下臭名昭著的 Mac OSX 错误:

emulator-arm 意外退出。

Eclipse 的控制台输出如下:

[2012-10-19 15:46:06 - test] Android Launch!
[2012-10-19 15:46:06 - test] adb is running normally.
[2012-10-19 15:46:06 - test] Performing com.example.test.MainActivity activity launch
[2012-10-19 15:46:06 - test] Automatic Target Mode: launching new emulator with compatible AVD 'test'
[2012-10-19 15:46:06 - test] Launching a new emulator with Virtual Device 'test'

我尝试将它们重置为之前的状态,并创建了一个新的模拟器设备。我试图重新启动 Eclipse 和机器本身,但没有。显然我不能再运行任何 Android 应用程序了。

有人知道吗?我在一些类似的线程上读到使用 adb 来重新启动它,但显然我也无法让它运行。通过执行 ./adb shell 我得到了 error: device not found。您知道我可以做些什么来解决这个问题吗?

谢谢

最佳答案

问题本质上是 AVD 管理器无法重新打开 Mac 上第二台显示器上的虚拟设备。解决方法是编辑以下文件

~/.android/avd/.avd/emulator-user.ini

(取决于您的系统,这也可能位于 ~/.android/avd/Default.avd/emulator-user.ini)

并将 window.x 和 window.y 条目更改为

window.x=0
window.y=0

来源:http://timvoet.com/2013/01/04/avd-emulator-crashes-on-mac/

关于Android 模拟器不再启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12975494/

相关文章:

java - Android achartengine : Cannot draw multiple lines in a graph

android - 您的动态链接路径前缀未在 firebase.json 中配置

android - 将新字体安装到 Android 模拟器的最佳方法是什么?

android - AVD(模拟器)无法在 Linux 上启动

javascript - 将 javascript 变量文件添加到 Sencha Touch 2 android 应用程序

android - 简单的 Android BLE 扫描仪

android - 我的网站无法在 iPhone 上正确缩放

java - 如何从我的应用程序向另一台 Android 设备发送短信

android 模拟器 WHPX : Failed to emulate MMIO access , 退出代码 3

android - 无法使用自定义构建的系统镜像启动 Android 模拟器