Android adb prompts non-internal or external command processing method

Use the adb command in the cmd command line to prompt non-internal or external commands. Generally, there are two methods for processing:

method one

First, if you don’t know the sdk installation path, you can check it in android stduio, as follows

Find the following three files from the location of the SDK, and copy the files to the directory displayed after the command line is opened.

Such as C:\User\Admin>path

 

Method Two

Modify environment variables

This computer (right click) → Properties → Advanced System Settings → Advanced → Environment Variables → System Variables → Path (double click or click the edit button below)

Click the "New" button to add the path of adb.exe to the environment variable. Now it is usually in the directory related to platform-tools.

 

3. New VS generation solution

When the command line can execute the cdb command, if the VS generation solution prompts that adb is not an internal or external command and the solution generation fails, you can check whether the ndk component is installed in the sdk tools in android stduio

If not, install it.

 

Guess you like

Origin blog.csdn.net/wyzworld/article/details/112284230