Frederico Schardong
Frederico Schardong

Reputation: 2095

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: Permission denied

So I tried:

#sudo tools/android update sdk
sudo: unable to execute tools/android: Permission denied

Upvotes: 2

Views: 3196

Answers (2)

harit mohamed amine
harit mohamed amine

Reputation: 1

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

Upvotes: 0

Gungnir
Gungnir

Reputation: 359

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

Upvotes: 5

Related Questions