update android sdk permission error
I have downloaded the android SDK 8 for linux and following the tutorial typed:
#tools/android update sdk
bash: tools/android: Permissi开发者_高级运维on denied
So I tried:
#sudo tools/android update sdk
sudo: unable to execute tools/android: Permission denied
Permission denied is because you are trying to execute something from a noexec mounted partition. Either mount with exec rights or use sh ./script
. In your case:
cd tools
sh ./android sdk
To remount with exec rights:
sudo mount -o remount,exec /dev/yourpartition
it is generaly caused by the files of java, you need to change the rights of the java files in the /usr/bin/ to do that you can execute:
sudo chmod +x /usr/bin/java
sudo chmod +x /usr/bin/javac
sudo chmod +x /usr/bin/javaws
sory for my bad english
精彩评论