Home » Android » bash: ./studio.sh: Permission denied (error installing Android-Studio)

bash: ./studio.sh: Permission denied (error installing Android-Studio)

Posted by: admin June 15, 2020 Leave a comment

Questions:

While I was trying to Install Android-Studio
and execute the command

@abhinay-Pc:/android-studio/bin$`./studio.sh

It is showing the error:

bash: ./studio.sh: Permission denied

I have already exported Java directory to /android-studio/bin folder`

(Java_Home = /usr/lib/jvm/java-7-oracle)

I have the java-7 installed on my system.

How to&Answers:

You might not have chmod +x studio.sh try sh ./studio.sh

If this was not it, try again like this: sh -x ./studio.sh. This will show you every line that is run and will help you debug it.

Good luck.

Answer:

you must change the properties of the studio.sh file and change in the permission to Allow this file to run as program