Android模拟器给出错误SO_REUSEPORT且调试不起作用 [英] Android Emulator gives an Error SO_REUSEPORT and debugging not working
问题描述
运行模拟器时出现以下错误,调试也无法进行,它说等待调试器连接.我想知道以下内容是否与等待调试器连接"有关.
I am getting following error when running emulator, also debugging is not working, it says waiting for debugger to attach. I am wondering if the following has anything to do with getting stuck at "waiting for debugger to attach".
仿真器:E0516 21:01:34.057349753 3279 socket_utils_common_posix.cc:201]检查SO_REUSEPORT: {创建":"@ 1589644894.057229268",说明":"SO_REUSEPORT 编译时不可用 系统,"文件:"/mnt/tmpfs/src/android/emu-master-dev/external/grpc/src/core/lib/iomgr/socket_utils_common_posix.cc," file_line:169}
Emulator: E0516 21:01:34.057349753 3279 socket_utils_common_posix.cc:201] check for SO_REUSEPORT: {"created":"@1589644894.057229268","description":"SO_REUSEPORT unavailable on compiling system","file":"/mnt/tmpfs/src/android/emu-master-dev/external/grpc/src/core/lib/iomgr/socket_utils_common_posix.cc","file_line":169}
我的android studio版本在下面.
My android studio version is below.
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:JetBrains s.r.o的OpenJDK 64位服务器VM Linux 5.4.0-29-通用 GC:ParNew,ConcurrentMarkSweep 记忆体:1246M 核心数:4 注册表:ide.new.welcome.screen.force = true 非捆绑插件:
Android Studio 3.6.3 Build #AI-192.7142.36.36.6392135, built on April 14, 2020 Runtime version: 1.8.0_212-release-1586-b4-5784211 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Linux 5.4.0-29-generic GC: ParNew, ConcurrentMarkSweep Memory: 1246M Cores: 4 Registry: ide.new.welcome.screen.force=true Non-Bundled Plugins:
推荐答案
我遇到了这个问题.
我做错了诊断.
使用以下命令从Android/Sdk/emulator/emulator
运行仿真器:
Running the emulator from Android/Sdk/emulator/emulator
with a command such as:
./emulator @Pixel_3_API_28 -netdelay none -netspeed full -debug all
也给了我这个错误,但这是非阻塞的.
./emulator @Pixel_3_API_28 -netdelay none -netspeed full -debug all
also gave me this error, but it is non-blocking.
当我:问题消失了
-
在软件更新程序>设置>其他驱动程序中切换到Ubuntu中的专有驱动程序(nvidia)
switched to proprietary driver (nvidia) in Ubuntu in the Software Updater > Settings > Additional Driver
重新启动
重新创建我的虚拟设备.
Recreating my virtual device.
这篇关于Android模拟器给出错误SO_REUSEPORT且调试不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!