android studio 模拟器在 3.0 更新后崩溃 [英] android studio emulator crashing after 3.0 update
问题描述
我一直在搞乱 android studio,最后我安装了 cocos2dx 并使用 arm cpu 模拟器来处理 cocos2dx.我最近看到一条消息提示更新 android 模拟器服务,所以我安装了它,现在我的模拟器在尝试启动时崩溃并在 logcat 中给出了这个错误 - 这是它给我的错误
I have been messing around with android studio and I ended up installing cocos2dx and using an arm cpu emulator to work with cocos2dx. I have recently seen a message prompting for an update for the android emulator service so I installed it and now my emulator crashes while trying to boot and gives this error in the logcat - this is the error it gave me
19:36 Emulator: **
19:36 Emulator: ERROR:/buildbot/src/android/emu-3.0-release/external/qemu/fpu/softfloat.c:486:round_canonical: code should not be reached
19:36 Emulator: Warning: QObject::~QObject: Timers cannot be stopped from another thread ((null):0, (null))
19:36 ADB rejected shell command (getprop): closed
19:36 Emulator: Process finished with exit code 3
我不知道这意味着什么,但我知道这与我下载的更新有关,有没有办法回滚更新?
I have no idea what this means but I know it has something to do with the update I downloaded, is there any way to roll back the update maybe?
推荐答案
我在 Windows 10 上遇到了同样的问题:Android Emulator 的当前版本(2018 年 11 月 14 日:28.0.16)尽快崩溃或死机随着虚拟 ARM 设备的启动.当我从命令行启动它时,它会打印出来
I've come across the same issue on Windows 10: the current version of Android Emulator (Nov 14, 2018: 28.0.16) crashes or freezes as soon as a virtual ARM device is started. When I start it from command line, it prints
模拟器:错误:/buildbot/src/android/emu-3.0-release/external/qemu/fpu/softfloat.c:486:round_canonical:代码不应到达
Emulator: ERROR:/buildbot/src/android/emu-3.0-release/external/qemu/fpu/softfloat.c:486:round_canonical: code should not be reached
作为临时解决方案,我将模拟器降级为旧版本,问题就消失了.
As a temporary solution, I downgraded the emulator to an older version and the problem disappeared.
在这里您可以找到 Android Emulator 27.2.9:
Here you can find Android Emulator 27.2.9:
Mac:https://dl.google.com/android/repository/emulator-darwin-4773671.zip
Linux:https://dl.google.com/android/repository/emulator-linux-4773671.zip
模拟器降级步骤:
停止模拟器的所有实例并关闭 Android Studio;
Stop all instances of the emulator and close Android Studio;
打开 Android SDK 目录.它的位置可以在设置中找到:Android Studio->File->Settings->Appearance &行为->系统设置->Android SDK->Android SDK位置;
Open Android SDK directory. Its location can be found in the settings: Android Studio->File->Settings->Appearance & Behavior->System Settings->Android SDK->Android SDK Location;
将现有的 'emulator' 目录移动到 Android SDK 之外的某个位置(如果您只是重命名并将其留在那里,AVD Manager 会找到它并再次开始使用);
Move existing 'emulator' directory somewhere outside of Android SDK (if you just rename and leave it there, AVD Manager will find it and start using again);
将一个emulator-*-4266726.zip解压到SDK目录;
Unpack one of emulator-*-4266726.zip into the SDK directory;
启动 Android Studio,在修复之前不要更新 Android Emulator.
Launch Android Studio and don't update Android Emulator until it's fixed.
相关答案:如何降级Android模拟器
这篇关于android studio 模拟器在 3.0 更新后崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!