Search code examples
androidbashintellij-ideaandroid-studio

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


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.


Solution

  • 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.