开发者

update android sdk permission error

开发者 https://www.devze.com 2023-02-06 18:44 出处:网络
I have downloaded the android SDK 8 for linux and following the tutorial typed: #tools/android update sdk

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

0

精彩评论

暂无评论...
验证码 换一张
取 消