bash: /usr/local/android-sdk-linux/tools/android: 权限被拒绝
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/27641514/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
bash: /usr/local/android-sdk-linux/tools/android: Permission denied
提问by Manoj Rana
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:
我正在尝试在 Ubuntu 上安装电话间隙。我遵循了所有必要的步骤并在 Ubuntu 上成功安装了 android sdk。但是当我在终端中输入 android 时,它显示权限被拒绝。我如何更改权限。错误是:
bash: /usr/local/android-sdk-linux/tools/android: Permission denied
回答by laune
Set the permissions using chmod exec'd using sudo
使用 sudo 使用 chmod exec'd 设置权限
sudo chmod a+x /usr/local/android-sdk-linux/tools/android
回答by Andrey Kopeyko
Simply fix the rights
只需修复权限
chmod +x /usr/local/android-sdk-linux/tools/android
and enjoy.
享受。
回答by Pegasus Cozza
Hit CTRL + ALT + T, then write :
点击CTRL + ALT + T,然后写:
sudo chmod a+x /usr/local/android-sdk-linux/tools/android
and enter.
和enter。
this will grant you all your necessary action in android
这将授予您在 android 中所有必要的操作