android studio 模拟器在 3.0 更新后崩溃

标签 android android-emulator cocos2d-x

我一直在摆弄 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:

降级模拟器的步骤:

  1. 停止模拟器的所有实例并关闭 Android Studio;

  2. 打开 Android SDK 目录。它的位置可以在设置中找到:Android Studio->File->Settings->Appearance & Behavior->System Settings->Android SDK->Android SDK Location;

  3. 将现有的“模拟器”目录移动到 Android SDK 之外的某个位置(如果您只是重命名并将其留在那里,AVD 管理器会找到它并再次开始使用);

  4. 将其中一个emulator-*-4266726.zip解压到SDK目录下;

  5. 启动 Android Studio 并且在修复之前不要更新 Android Emulator。

相关回答:How to downgrade Android Emulator

关于android studio 模拟器在 3.0 更新后崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53269188/

相关文章:

java - 在 onClick() 中实例化 ui 元素与在 Fragment 中实例化 onCreateView

c# - 使用 Android 模拟器从外部应用程序通过 COM 测试 AT 命令

android - 操作栏兼容性

visual-studio - Android Emulator 环回 IIS Express 不起作用,但可以与 Cassini 一起使用

android - eclipse +安卓+Cocos2d-x : Why does the emulation only work once?

android - MapView onTap 问题 : android. view.WindowManager$BadTokenException:无法添加窗口—— token null 不适用于应用程序

android - react native 错误 : TypeError: null is not an object _RNGestureHandlerModule. default.Direction

c++ - rapidjson::std::pair 中的文档

c++ - cocos2d-x 在 3d 中重复纹理

android - 如何使用 Exoplayer 使视频全屏而不拉伸(stretch)