问题
i am trying to install phone gap on Ubuntu. I followed all the necessary steps and successfully installed the android sdk on Ubuntu. but when I type android in the terminal it shows permission denied. How do i change the permission. The error is:
bash: /usr/local/android-sdk-linux/tools/android: Permission denied
回答1:
Set the permissions using chmod exec'd using sudo
sudo chmod a+x /usr/local/android-sdk-linux/tools/android
回答2:
Simply fix the rights
chmod +x /usr/local/android-sdk-linux/tools/android
and enjoy.
回答3:
Hit CTRL + ALT + T , then write :
sudo chmod a+x /usr/local/android-sdk-linux/tools/android
and enter.
this will grant you all your necessary action in android
来源:https://stackoverflow.com/questions/27641514/bash-usr-local-android-sdk-linux-tools-android-permission-denied