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
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.
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.
Remove the build tool and re download it fixes my problem.
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
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 :)
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