“adb: CreateFileW ‘nul‘ failed: 系统找不到指定的文件”解决办法

本文详细描述了adb启动报错的代码和截图,包括daemon not running、创建文件失败等,提供了解决方案,如手动启动adb并附有相关截图。焦点在于修复adb daemon连接问题和启动过程中的错误。
摘要由CSDN通过智能技术生成

报错说明和截图

报错代码:

>> adb.exe start-server
* daemon not running; starting now at tcp:5037
adb: CreateFileW 'nul' failed: 系统找不到指定的文件。 (2)
* failed to start daemon
error: cannot connect to daemon

报错信息截图:报错信息截图

解决办法

手动启动adb:

>> adb nodaemon server
adb I 06-12 11:23:55 12000 10640 auth.cpp:437] adb_auth_init...
adb I 06-12 11:24:34 12000 11456 transport.cpp:282] emulator-5554: read thread spawning
adb I 06-12 11:24:34 12000 13096 transport.cpp:295] emulator-5554: write thread spawning
adb I 06-12 11:25:09 12000 11456 transport.cpp:286] emulator-5554: read failed: Unknown error
adb I 06-12 11:25:09 12000 11456 transport.cpp:695] emulator-5554: connection terminated: read failed
adb I 06-12 11:25:09 12000 10640 adb.cpp:110] emulator-5554: already offline
adb I 06-12 11:25:09 12000 10640 transport.cpp:782] destroying transport emulator-5554
adb I 06-12 11:25:09 12000 10640 transport.cpp:358] BlockingConnectionAdapter(emulator-5554): stopping
adb I 06-12 11:25:09 12000 10640 transport.cpp:376] BlockingConnectionAdapter(emulator-5554): stopped
adb I 06-12 11:25:10 12000 10640 transport.cpp:270] BlockingConnectionAdapter(emulator-5554): destructing
adb I 06-12 11:25:10 12000 10640 transport.cpp:350] BlockingConnectionAdapter(emulator-5554): already stopped
adb I 06-12 11:26:49 12000   560 transport.cpp:282] emulator-5554: read thread spawning
adb I 06-12 11:26:49 12000  5896 transport.cpp:295] emulator-5554: write thread spawning
adb I 06-12 11:26:53 12000 10640 adb.cpp:110] emulator-5554: already offline
adb server killed by remote request

手动启动方式截图:
手动启动截图

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值