adb cannot start daemon, CreateProcess failure, error 2

You need to make sure that all your development tools use the same version of adb.

One easy way to do that is to open the Command Prompt window as Administrator and run these 2 commands to delete all copies:

taskkill /f /im adb.exe
for %a in ("%systemroot%" "%userprofile%" "%path:;=";"%") do @del /q /f /s "%~a\adb.exe" "%~a\adbwinapi.dll" "%~a\adbwinusbapi.dll" 2>nul

Then reinstall the latest version of the platform-tools package from the SDK Manager or manually by downloading and unzipping the package file (check adb info page for the link) into the %ANDROID_SDK_HOME% folder.

Also make sure that %ANDROID_SDK_HOME%\platform-tools folder is included in your %PATH%.

Leave a Comment