Search code examples
androidandroid-sdk-manager

can not open sdk manager with terminal Mac OS


I open my terminal to the tools directory of my sdk directory:

/Users/myusername/Library/Android/sdk/tools

and then I run below command to open the sdk manager:

./android

the result is:

-bash: ./android: Permission denied

I also tried:

 sudo ./android

but get below result:

sudo: ./android: command not found

does some one know what is the problem?

This is the result of pwd:

/Users/myuser/Library/Android/sdk/tools

Solution

  • Have you tried "sudo chmod +x android" ? Chmod +x will make the binary executable chmod is a POSIX standard and you can find the man page online http://linux.die.net/man/1/chmod