" 2> /dev/null" -> ignore find results denied by permission.Please note there is a space before the "/" character -> only find in User directory not all the computer.Try this in your terminal/ command line, " find / -name "platform-tools" 2> /dev/null" (Note: I didn't test in Window yet, but it works with Mac for sure). However, in case you could NOT remember this such long directory, you can quickly find it by the command " find". Window, it could be in: " %USERPROFILE%\AppData\Local\Android\sdk\platform-tools\". Mac, it could be in: " ~/Library/Android/sdk/platform-tools" + The reason is: you are in the wrong directory (means it doesn't contain adb executor).ġ) Find where the adb was installed. Search file ~/.bash_profile or ~/.zprofile & open it.Go to the Home directory & tap command + shift +.Run the following command to reload your shell configuration:Īfter you have set the PATH for adb, you should be able to run the adb command from any terminal window.Press Ctrl+X to exit the Nano editor, then press Y to save the changes and Enter to confirm the filename. This will open the ~/.bash_profile or ~/.zprofile file in the Nano text editor.Įxport PATH=~/Library/Android/sdk/tools:$PATHĮxport PATH=~/Library/Android/sdk/platform-tools:$PATH Open a terminal window and enter the following command:.If you're using Bash, so you will need to edit the ~/.bash_profile file otherwise edit ~/.zprofile in your home directory. The default shell on macOS is Bash or Zash. To set the PATH for the adb command on a macOS system, firstly need to edit your shell configuration file. User > Library (Hidden folder) > Android > sdk > platform-tools > adb If you want to check the SDK is available or not, just check it by following this path: Considering you have already downloaded SDK platform tools & trying to set adb path:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |