我一直在摆弄 android studio,最后我安装了 cocos2dx 并使用 arm cpu 模拟器来处理 cocos2dx。我最近看到一条提示更新 android 模拟器服务的消息,所以我安装了它,现在我的模拟器在尝试启动时崩溃并在 logcat 中给出这个错误 - 这是它给我的错误
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
我不知道这是什么意思,但我知道这与我下载的更新有关,有什么办法可以回滚更新吗?
最佳答案
我在 Windows 10 上遇到了同样的问题:当前版本的 Android Emulator(2018 年 11 月 14 日:28.0.16)在虚拟 ARM 设备启动后立即崩溃或卡住。当我从命令行启动它时,它会打印
Emulator: ERROR:/buildbot/src/android/emu-3.0-release/external/qemu/fpu/softfloat.c:486:round_canonical: code should not be reached
作为临时解决方案,我将模拟器降级到旧版本,问题就消失了。
在这里您可以找到 Android Emulator 27.2.9:
Windows:https://dl.google.com/android/repository/emulator-windows-4773671.zip
苹果电脑:https://dl.google.com/android/repository/emulator-darwin-4773671.zip
Linux:https://dl.google.com/android/repository/emulator-linux-4773671.zip
降级模拟器的步骤:
停止模拟器的所有实例并关闭 Android Studio;
打开 Android SDK 目录。它的位置可以在设置中找到:Android Studio->File->Settings->Appearance & Behavior->System Settings->Android SDK->Android SDK Location;
将现有的“模拟器”目录移动到 Android SDK 之外的某个位置(如果您只是重命名并将其留在那里,AVD 管理器会找到它并再次开始使用);
将其中一个emulator-*-4266726.zip解压到SDK目录下;
启动 Android Studio 并且在修复之前不要更新 Android Emulator。
关于android studio 模拟器在 3.0 更新后崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53269188/