简体   繁体   English

守护进程没有运行; adb: CreateFileW 'nul' failed: 系统找不到指定的文件。 Android Studio 错误

[英]Daemon not running; adb: CreateFileW 'nul' failed: The system cannot find the file specified. Android Studio error

daemon not running;守护进程没有运行; adb: CreateFileW 'nul' failed: The system cannot find the file specified. adb: CreateFileW 'nul' failed: 系统找不到指定的文件。 I'm getting this error on running an app.我在运行应用程序时遇到此错误。 The gradle does complete build and the emulator also runs with android but the app doesn't open and I can't find it either in the apps of the device. gradle 确实完成了构建,模拟器也可以在 android 上运行,但应用程序没有打开,我在设备的应用程序中也找不到它。 And I am using one of those default templates when you create a new project without any modifications.当您创建一个新项目时,我将使用这些默认模板之一,而无需进行任何修改。 I have tried downloading and replacing three files ( adb.exe, AdbWinApi.dll, AdbWinUsbApi.dll) in the platform-tools in appdata.我尝试在 appdata 的平台工具中下载和替换三个文件(adb.exe、AdbWinApi.dll、AdbWinUsbApi.dll)。 It says run manually if necessary.它说必要时手动运行。 So i went to that directory and ran the command: adb start-server, in the command prompt but it gives the same error:所以我去了那个目录并在命令提示符下运行命令:adb start-server,但它给出了同样的错误:

C:\Users\samir\AppData\Local\Android\Sdk\platform-tools>adb start-server

* daemon not running; starting now at tcp:5037

adb: CreateFileW 'nul' failed: The system cannot find the file specified. (2)

* failed to start daemon

error: cannot connect to daemon

How do I fix this?我该如何解决?

6 months later but just encountered this problem. 6个月后却刚遇到这个问题。

Found the solution after digging for 5 hours based on this: https://issuetracker.google.com/issues/169425447基于此挖掘5小时后找到解决方案: https : //issuetracker.google.com/issues/169425447

Basically need to modify the register key "Start" found on:基本上需要修改在以下位置找到的注册键“Start”:

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Null\Start 

to 1到 1

I don't know why I had that disabled but changing it and restarting fixed everything.我不知道为什么我禁用了它,但是更改它并重新启动修复了一切。 Hope to help someone.希望能帮助某人。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 adb:CreateFileW'null'失败:系统找不到指定的文件 - adb: CreateFileW 'null' failed: The system cannot find the specified file cordova build android 错误:系统找不到指定的路径。 错误:cmd:命令失败,退出代码为 1 - cordova build android error : The system cannot find the path specified. Error: cmd: Command failed with exit code 1 错误:系统找不到指定的文件。 詹金斯 - error: The system cannot find the file specified. Jenkins android studio gradle刷新失败(系统找不到指定的文件) - android studio gradle refresh failed (The system cannot find the file specified) android studio gradle refresh failed(系统找不到指定的文件) - android studio gradle refresh failed (The system cannot find the file specified) 系统找不到android studio中指定的文件? - The system cannot find the file specified in android studio? Android Studio 系统找不到指定的文件 - Android Studio The system cannot find the file specified cordova build android提供错误“系统找不到指定的路径。” - cordova build android give error “The system cannot find the path specified.” android 中的错误,Proguard.cfg(系统找不到指定的文件。) - error in android, Proguard.cfg (System can not find the file specified.) Android Studio错误➡无法运行程序“ git” ... CreateProcess错误= 2,系统找不到指定的文件 - Android Studio error ➡ Cannot run program “git” … CreateProcess error=2, The system cannot find the file specified
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM