Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio 2.2 in Ubuntu 14.04 LTS gives Error : "Gradle sync failed: Cause: error=13, Permission denied"

I have installed android 2.2 in ubuntu 14.04 LTS but when I try to run an android app it shows immediate error: "Gradle sync failed: Cause: error=13, Permission denied. Consult IDE log for more details (Help | Show Log)".

When I looked into the terminal while I tried to run the android app, it gives below message in terminal: WARN - roid.tools.ndk.GradleWorkspace - NDK support for project 'MyApp' is disabled because the project doesn't contain any valid native configurations.

I have tried every possible solution on google/stackoverflow but nothing was helpful. Any help/suggestion would be appreciated. Thanks.

like image 547
shark20 Avatar asked Dec 24 '22 01:12

shark20


2 Answers

This error is sometimes generated due to Java JRE(built-in) failing to execute. Please try the following:

chmod +x android-studio/jre/bin/*
like image 69
lamino Avatar answered Dec 26 '22 15:12

lamino


To solve the first problem, did you try to execute the Android Studio as root or using sudo command?

To solve the warn, are you going to use the NDK (Native Development Kit) in your app? If yes, you have installed the NDK? If no, just ignore the warn.

To install the NDK you have to go to File -> Other Settings -> Default Project Structure And in the Android NDK Location, click in Download and then continue the installation.

like image 27
Martin Buron Avatar answered Dec 26 '22 14:12

Martin Buron