如何解决Windows 7下Android Studio中adb.exe崩溃/重启循环问题
问题:Windows 7上adb.exe 34.0.5启动崩溃并无限重启循环
在Windows 7系统上全新安装Android Studio(版本:2022.3.1 Patch 2)后,adb.exe会在启动时自动运行。但adb.exe 34.0.5启动失败(崩溃),随后陷入无限重启循环。尽管Android Studio已不再支持Windows 7,但另一台Windows 7设备上的adb.exe 34.0.5可正常运行。
故障设备上的重启循环日志如下:
Adb connection Error:Connection reset Cannot reach ADB server, attempting to reconnect. * daemon not running; starting now at tcp:5037 could not read ok from ADB Server * failed to start daemon error: cannot connect to daemon 'C:\Users\Admin\AppData\Local\Android\Sdk\platform-tools\adb.exe start-server' failed -- run manually if necessary * daemon not running; starting now at tcp:5037 could not read ok from ADB Server * failed to start daemon error: cannot connect to daemon 'C:\Users\Admin\AppData\Local\Android\Sdk\platform-tools\adb.exe start-server' failed -- run manually if necessary
关闭Android Studio后,在命令提示符中(需替换为自身platform-tools路径)执行以下操作:
c:\> set ADB_TRACE=all c:\> "C:\Users\Admin\AppData\Local\Android\Sdk\platform-tools\adb.exe" version c:\> "C:\Users\Admin\AppData\Local\Android\Sdk\platform-tools\adb.exe" kill-server c:\> "C:\Users\Admin\AppData\Local\Android\Sdk\platform-tools\adb.exe" server nodaemon
执行server nodaemon命令时崩溃,报错:adb.exe : sysdeps_win32.cpp:602 _socket_set_errno: mapping Windows error code 10061 to errno 22,服务器未按预期运行。
添加以下注册表项以生成崩溃转储:
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\adb.exe] "DumpFolder"=hex(2):43,00,3a,00,5c,00,43,00,72,00,61,00,73,00,68,00,44,00,75,00,6d,00,70,00,73,00,00,00
生成的转储文件信息如下:
This dump file has an exception of interest stored in it. The stored exception information can be accessed via .ecxr. (6dc.1e2c): Unknown exception - code 40000015 (first/second chance not available) eax=00000000 ebx=0045ee58 ecx=00000000 edx=00000000 esi=00000002 edi=00000000 eip=770d015d esp=0045ee08 ebp=0045eea4 iopl=0 nv up ei pl zr na pe nc cs=0023 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000246 ntdll!NtWaitForMultipleObjects+0x15: 770d015d 83c404 add esp,4
已尝试升级“通用C运行时”,但症状未改善。请问如何让adb.exe在此系统上正常运行而不崩溃?
内容的提问来源于stack exchange,提问作者Dale
相关产品推荐
相关产品推荐

