Reputation: 215
I'm trying to add the location of Android sdk to my path on a mac. Here's my $PATH
/Users/myname/Library/Android/sdk/tools/:/Users/myname/Library/Android/sdk/platform-tools/:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
However when I try to run ./android, I keep getting the error
-bash: ./android: No such file or directory.
Evidently it's not finding the path correctly. What am I doing wrong here.
Upvotes: 1
Views: 101
Reputation: 8184
Adding the SDK to the path is usually adding the platform-tools folder in the $PATH var so you can access adb without navigating to the where the binary is.
In my system I created a .profile
in my home folder. This file is ran whenever you open a new terminal.
In mine I have :
export $PATH="$PATH:<path_to_platform_tools>"
Make sure you make this script executable with
chmod +x .profile
Upvotes: 0