Android Studio error 13=permission denied in linux

前端 未结 14 2117
有刺的猬
有刺的猬 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 04:08

    In my case the partition in which I saved the Sdk was mounted with the defaults option in /etc/fstab, which in turn enabled the default noexec option which forbids execution for all files in that partition.

    Then I edited that line in fstab appending exec, resulting in the options list 'user,defaults,exec' for that partition.

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

    In Android Studio folder, open your terminal and type the following

    chmod 777 * -R
    

    This surely worked like magic for me

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

    The permissions problem with file not found with aapt wasn't with this file itself but with the *.so files it tries to use. The first thing to do which I didn't at first was run the following sudo yum install zlib.i686 ncurses-libs.i686 bzip2-libs.i686 to get the necessary 32 bit *.so files installed. I found out about the missing *.so files by running aapt outside the studio. I also found there were a number of files that were read or read write only that needed to be executable in these directories. android-studio/bin android-studio/jre/bin android-studio/jre/jre/bin android-studio/gradle/gradle-2.14.1/bin

    The fsnotifier files and the 2 *.sh file in the first bin directory. All the files in the two jre directories and the gradle file in the last directory needed to be chmod 755. After I did that I no longer get the pop up box about the fsnotifier and the gradle build doesn't get the permission error. Running as root doesn't help when the problem is with files not being executable.

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

    I coould resolve the same issue by using the following shell command:

    chmod 755 -R android-studio
    

    You need to grant more privileges.

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

    If this can help, I solved after giving full execution permissions (chmod a+x) to all executables in /opt/android-bundle/sdk/build-tools/$VERSION/ (aapt, dx and zipalign).

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

    just reinstall the build tool version and then go into folder where sdk is installed and in build tool version's "aapt" file and change permissions from "property" all to read and write and check mark to "Allow executing file as a program" and then close it. same problem is solved by doing this.

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