Gradle could not synchronize, NDK is not configured, load it using the SDK manager

I am completely new to Android development and have just installed Android Studio. I am doing a very simple exercise HelloGL2, and I opened the file HelloGL2.iml. I tried running it, but he said that the gradle project synchronization worked and that the NDK was not configured. In simple terms (for a complete newbie in Android), how can I fix this?

+6
source share
4 answers

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.

+17
source

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

so you better download it from here and copy all the folders and files to your SDK.

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

if you don’t have the NDK tab on the SDK tab, you can load the automatic in this folder

0
source

My version is a little different:

In the project that opens, select "Tools"> "Android"> "SDK Manager." Main menu. Appearance and behavior> System Preferences> Android SDK I need to click the "SDK Tools" tab. Check the box next to NDK Click Apply

0
source

// Try this 1 - Android Studio β†’ Tools β†’ SDK Manager β†’ select SDK Tools

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

3 - Apply and click OK. enter image description here

0
source

Source: https://habr.com/ru/post/1012849/


All Articles