1

我知道有很多人在这里问过这个问题,但我检查并遵循了所有问题,但我仍然有同样的问题

我的系统配置

我正在使用Android Studio 4.0 Version,我SDK

我的处理器是 AMD 处理器所以我无法安装HAMX

我的虚拟设备是pixel 3a,我在该虚拟设备下方链接了我的设置

错误消息列表

错误

我试图运行一个简单的程序,但模拟器在开始运行时没有运行它首先显示以下错误消息

对于这个错误,很多人建议使用advancedFeatures.ini,但这并不能解决我的问题

所以我只是点击确定并尝试在模拟器中运行程序,我的模拟器处理时间太长,它显示以下错误日志,还说“等待模拟器上线 300 秒后超时”

对于这个错误并检查所有的 Stackflow 问题,没有什么可以解决我的问题请建议如何在模拟器中运行项目

02:45 PM    Executing tasks: [:app:assembleDebug] in project C:\Users\karthickyuvan\AndroidStudioProjects\Log

02:45 PM    Gradle build finished in 23 s 176 ms

02:46 PM    Emulator: socketTcpLoopbackClientFor: error: fd 35828 above FD_SETSIZE (32768)

02:46 PM    Emulator: socketTcpLoopbackClientFor: error: fd 35828 above FD_SETSIZE (32768)

02:46 PM    Emulator: emulator: ERROR: AdbHostServer.cpp:102: Unable to connect to adb daemon on port: 5037

02:46 PM    Emulator: Warning: restoring GLES1 context from snapshot. App may need reloading.

02:51 PM    Emulator: socketTcpLoopbackClientFor: error: fd 53704 above FD_SETSIZE (32768)

02:51 PM    Emulator: socketTcpLoopbackClientFor: error: fd 53708 above FD_SETSIZE (32768)

02:51 PM    Emulator: emulator: ERROR: AdbHostServer.cpp:102: Unable to connect to adb daemon on port: 5037

02:52 PM    Emulator: Process finished with exit code 0

4

1 回答 1

1
  1. 您正在使用 AMD 处理器,因此首先在 Bios 中启用虚拟化

  2. 转到控制面板添加/删除并选择“打开/关闭功能”,然后启用管理程序和 VMP,然后重新启动

  3. 转到 AVD manager 并选择 Choose Pixel 2 然后选择 Api Level 28 并安装并现在运行

还要在命令提示符下检查 adb 它无法识别,然后在环境变量中为 sdk 平台工具设置路径变量。

于 2020-07-15T03:47:00.930 回答