Gradle sync failed, NDK not configured, download it with SDK manager

Karina H 12/03/2016. 4 answers, 12.918 views
android android android-ndk android-ndk

I am completely new to Android development and just installed Android Studio. I'm doing a very basic HelloGL2 exercise, and I opened up the HelloGL2.iml file. I tried running it, but it said that the gradle project sync failed and that the NDK is not configured. In the simplest terms (to a complete beginner in Android), how do I fix this?

1 Comments
Morrison Chang 12/03/2016
I'm going to assume you've found this code lab: codelabs.developers.google.com/codelabs/android-studio-jni/#‌​0 which step-by-step answers how to get 'Hello World' working with Android Studio and the NDK.

4 Answers


Umair 12/27/2016.

You can install these components using the SDK Manager:

From an open project, select Tools > Android > SDK Manager from the main menu.
Click the SDK Tools tab.
Check the box next to NDK
Click apply

See guide for more details


A.Bahrami 07/23/2017.

if you see this error you may have not any NDK in your SDK.

so you better download it from hereand copy all folders and files in your SDK.

also you can go; open project>select tools[in upper page]>Android>SDK Manager[from main menu]>click SDK Tools tab>and check the box next to NDK

if you have not NDK in SDK Tools tab,you can download automatic in this folder


My version is a little bit different :

From an open project, select Tools > Android > SDK Manager from the main menu. In Appearance & behavior > System Settings > Android SDK I have to Click the SDK Tools tab. Check the box next to NDK Click apply


Ijas Aslam 10/13/2017.

//Try this one 1 - Android Studio -> Tools -> SDK Manager -> select SDK Tools

2 - Check the boxes next to LLDB, CMake, and NDK

3 - Apply and press OK button ..enter image description here

Related questions

Hot questions

Language

Popular Tags