title: Daemon not running; adb: CreateFileW 'nul' failed: The system cannot find the file specified. Android Studio error
body: <p>daemon not running; adb: CreateFileW 'nul' failed: The system cannot find the file specified. 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. 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. 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:</p>
  <pre><code>C:\Users\samir\AppData\Local\Android\Sdk\platform-tools&gt;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
  </code></pre>
  <p>How do I fix this?</p>