preface

New win10 system mobile phone can not connect to androidstudio run error

Adb: CreateFileW ‘nul’ failed: daemon not running; starting now at tcp:5037

daemon not running; starting now at tcp:5037 failed to start daemon 22:38 error: Cannot connect to daemon ‘C:\Users\Username\AppData\Local\Android\Sdk\platform-tools\adb. Exe start-server’ failed — run manually if necessary

Analysis:

The error may have occurred because the adb service was not started.

Solution:

Prerequisites: You need to configure the Android Tools environment variables

Adb nodaemon Server in CMD console can normally start ADB, then add. Bat file to WINDOWS launcher, start ADB automatically run CMD and then automatically run background.

The operations are as follows: 1. Create a. Bat file on desktop

Desktop -> Text Document -> Save as a custom named. Bat format, edit. Bat file. Add a few lines of code.



2. Place it in the Win10 startup directoryC:\Users\Administrator\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\StartupNote that the directory is usually hidden and displayed in the Administrator folder



3. Restart adb to run in the background

You can open task Manager to see if ADB is running successfully

As is shown in

4. Restart Android Studio to check whether the phone is connected successfully

I want to climb up step by step in the highest point of the leaf fly forward and let the wind blow dry tears and sweat I want to climb up step by step waiting for the sun quietly looking at its face small day has a big dream I have my day the wind blow dry tears and sweat someday I have my day