如何在Mac上获取Android Emulator崩溃的日志? [英] How to get logs of Android Emulator crash on Mac?

查看:236
本文介绍了如何在Mac上获取Android Emulator崩溃的日志?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Android Emulator AVD在打开后立即在Mac上关闭.如何查看错误日志?它存储在哪个位置以检查问题?

Android Emulator AVD closes on Mac as soon it is opened. How to check the error logs? In which location is it stored to examine the issue?

我碰巧自己解决了这个问题.请在下面回答.就我而言,我必须退出Docker.

I happened to fix the issue myself. Answer below. In my case, I had to quit Docker.

推荐答案

要在启动模拟器时查看日志,我必须直接使用终端.

To see the logs when launching the emulator, I had to use the terminal directly.

首先, $ANDROID_SDK_HOME/tools/emulator @device_name.对我来说是/Users/rakshakhegde/Library/Android/sdk/tools/emulator @Nexus_5X_API_O.

First, $ANDROID_SDK_HOME/tools/emulator @device_name. For me it was /Users/rakshakhegde/Library/Android/sdk/tools/emulator @Nexus_5X_API_O.

在日志中说emulator: Failed to sync vcpu reg.因此,从这篇SO帖子中,我意识到任何其他正在运行的VM都可能会干扰打开仿真器.就我而言,它是在后台运行的Docker.杀死它后,让我的模拟器运行.

In the logs it said that emulator: Failed to sync vcpu reg. So from this SO post I realized that any other running VM can interfere to open the emulator. In my case, it was Docker running in the background. After I killed it, got my emulator running.

这篇关于如何在Mac上获取Android Emulator崩溃的日志?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆