更新后模拟器出现问题

pie*_*630 5 android android-emulator android-studio

几天来,我的模拟器 Android Studio 出现问题,当我尝试编译代码时,我的事件日志标记为:

09:13   Emulator: socketTcpLoopbackClientFor: error: fd 44088 above FD_SETSIZE (32768)

09:13   Emulator: socketTcpLoopbackClientFor: error: fd 44088 above FD_SETSIZE (32768)

09:13   Emulator: emulator: ERROR: AdbHostServer.cpp:102: Unable to connect to adb daemon on port: 5037
Run Code Online (Sandbox Code Playgroud)

我能做些什么来解决这个问题提前谢谢

Doc*_*Doc 5

更新:此问题已在此处30.0.26提到的版本中修复。可能不再需要下面提到的临时修复。


是的,这个问题出现在30.0.12安卓模拟器版本中。

作为临时修复,仅适用于没有 PlayStore 的模拟器,禁用多核 cpu 选项

Avd Manager -> Select emulator -> edit -> Advanced Settings -> Multi-core CPU -> UNCHECK this option

带有 PlayStore 图像的设备不允许更改有关设备的任何内容,这将不起作用。

通过禁用多核 cpu 选项,我没有看到任何重大滞后。模拟器响应迅速,加载时间不到 2 秒,随时可用。

在 Ryzen 5 1600、16GB RAM、Windows 10 Pro、模拟器 30.0.12 上测试。