Android 模拟器给出错误 SO_REUSEPORT 并且调试不起作用

Ahm*_*med 24 android android-studio

运行模拟器时出现以下错误,调试也不起作用,它说正在等待调试器附加。我想知道以下是否与陷入“等待调试器附加”有关。

模拟器:E0516 21:01:34.057349753 3279 socket_utils_common_posix.cc:201] 检查 SO_REUSEPORT:{"created":"@1589644894.057229268","description":"onfile"common_posix.cc:201] /src/android/emu-master-dev/external/grpc/src/core/lib/iomgr/socket_utils_common_posix.cc","file_line":169}

我的 android studio 版本如下。

Android Studio 3.6.3 Build #AI-192.7142.36.36.6392135,于 2020 年 4 月 14 日构建运行时版本:1.8.0_212-release-1586-b4-5784211 amd64 VM:Open 64-Bit Servers .JDK54s Jet4s 虚拟机0-29-generic GC:ParNew,ConcurrentMarkSweep 内存:1246M 内核:4 注册表:ide.new.welcome.screen.force=true 非捆绑插件:

小智 2

我有这个问题。

我做出了错误的诊断。

Android/Sdk/emulator/emulator使用以下命令运行模拟器 :

./emulator @Pixel_3_API_28 -netdelay none -netspeed full -debug all也给了我这个错误,但它是非阻塞的。

当我执行以下操作时,问题就消失了:

  • 在 Ubuntu 中,在“软件更新程序”>“设置”>“附加驱动程序”中切换到专有驱动程序 (nvidia)

  • 正在重启

  • 重新创建我的虚拟设备。


归档时间:

查看次数:

3915 次

最近记录:

4 年,10 月 前