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.
This error is sometimes generated due to Java JRE(built-in) failing to execute. Please try the following:
chmod +x android-studio/jre/bin/*
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With