Android Studio error 13=permission denied in linux

前端 未结 14 2159
有刺的猬
有刺的猬 2021-02-06 03:53

i am using android studio latest version in linux(elementary luna to be specific). I installed jdk, android studio and sdk successfully, android studio opens us perfectly and ev

相关标签:
14条回答
  • 2021-02-06 03:57

    as error said:

    Error: Cannot run program "/home/suUs12/Android/Sdk/build-tools/21.1.2/aapt": error=13, Permission denied
    

    you don't have permission. just go to /home/suUs12/Android/Sdk/build-tools/21.1.2/ and remove aapt file.

    0 讨论(0)
  • 2021-02-06 03:58

    I'm running android studio 1.0.2 on ubuntu 14.04 (LTS) 32 bit and i had the same problem. just go to "/home/suUs12/Android/Sdk/build-tools/21.1.2/" and then right click on 'aapt' file , properties -> permissions and check 'Allow executing file as program'. then close the window.

    In my case,after giving permission for 'aapt' file, I had to give the same permission for 'dx' and 'zipalign' files in the same directory (/home/suUs12/Android/Sdk/build-tools/21.1.2/) and I was able to run my first app using android studio.

    0 讨论(0)
  • 2021-02-06 03:59

    Remove the build tool and re download it fixes my problem.

    0 讨论(0)
  • 2021-02-06 03:59

    I solved this problem by:

    chmod +x /User/Library/Android/sdk/build-tools/23.0.1/aapt
    chmod +x /User/Library/Android/sdk/build-tools/23.0.1/dx
    chmod +x /User/Library/Android/sdk/build-tools/23.0.1/zipalign
    
    0 讨论(0)
  • 2021-02-06 04:00

    I Solved This Problem By : Right Click On Main Folder Like Android-Studio and then Go to Properties and then Click On Permission and check CheckBox For Allow Executing File As a Program Then Run Android Studio In Terminal :)

    0 讨论(0)
  • 2021-02-06 04:05

    This problem is about insufficient authority. If you change your user as 'root' and you open android studio, this problem will be resolved. For ex;

    Open Terminal

    $ sudo -i

    [enter your password] : ********

    root@pc-name:~$ cd /home/username/.../android-studio/bin

    root@pc-name:~$ ./studio.sh

    0 讨论(0)
提交回复
热议问题