adb command not found

后端 未结 20 2455
刺人心
刺人心 2020-12-22 15:32

I need to run an adb forward command before I could use the ezkeyboard application which allows user to type on the phone using browser.

When

20条回答
  •  情书的邮戳
    2020-12-22 16:28

    Is adb installed? To check, run the following command in Terminal:

    ~/Library/Android/sdk/platform-tools/adb
    

    If that prints output, skip these following install steps and go straight to the final Terminal command I list:

    1. Launch Android Studio
    2. Launch SDK Manager via Tools -> Android -> SDK Manager
    3. Check Android SDK Platform-Tools

    Run the following command on your Mac and restart your Terminal session:

    echo export "PATH=~/Library/Android/sdk/platform-tools:$PATH" >> ~/.bash_profile
    

    Note: If you've switched to zsh, the above command should use .zshenv rather than .bash_profile

提交回复
热议问题