(Turn) How to configure adb command on Mac pro?

How to configure adb command on Mac pro?

How to add the adb command of the Android SDK to the environment variable on the Mac pro will be explained here!

method/step

  1. Launch Terminal, you can search for "Terminal" in Spotlight

  2. Enter the HOME directory of the current user, and the command is as follows:

    cd $ HOME

  3. Update the .bash_profile file (when the file exists), if the file does not exist, create it with the following command:

    touch .bash_profile

  4. Open the .bash_profile file and edit its content with the following commands:

    open -e .bash_profile

  5. At this point, the text editor will open a text and edit the content as follows:

    export PATH=${PATH}:/Users/apple/Library/Android/sdk/platform-tools

    It can be modified according to the installation directory of the SDK

  6. Save the file, close .bash_profile

  7. Update the environment variables just configured, the command is as follows:

    source .bash_profile

  8. To verify that the configuration is successful, the command is as follows:

    adb devices

    How to configure adb command on Mac pro?

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326862336&siteId=291194637