19

I've installed Android Studio 2.2.3 and created a "myApplication" with include C++ support. I get this error:

Error:NDK not configured.
Download it with SDK manager.)

Is there any good way to solve it please?

Franky
  • 1,181
  • 2
  • 11
  • 33
  • 1
    Is it impossible? Hasn't anyone done it on the planet earth? – Franky Feb 18 '17 at 18:48
  • You did not say what you did in order to solve it - did you download the NDK? Did you tell your Android Studio where it is after you downloaded it? – yakobom Feb 19 '17 at 04:58
  • Yes, I downloaded and installed *android-ndk-r13b* but how to tell it where it is? And also the NDK section does not exist in my Android Studio!! – Franky Feb 19 '17 at 06:29

1 Answers1

58

Once you have downloaded the NDK, go to "File" menu, than "Project Structure->SDK Location" and set the Android NDK Location (it is at the bottom of the window).

yakobom
  • 2,681
  • 1
  • 25
  • 33
  • I entered the path "**C:\Users\CS\Desktop\Documents\Andro\android-ndk-r13b**" there. Now I get: "**Error:Failed to find CMake. Install from Android Studio under File/Settings/Appearance & Behavior/System Settings/Android SDK/SDK Tools/CMake. Expected CMake executable at C:\Users\CS\AppData\Local\Android\Sdk\cmake\bin\cmake.exe.**". Should I run that *cmake.exe* in its path? – Franky Feb 19 '17 at 07:16
  • OK, so it means now you have the NDK ready. You are facing another issue - if you haven't already, I suggest you look here: https://developer.android.com/studio/projects/add-native-code.html – yakobom Feb 19 '17 at 07:50
  • If you mean **LLDB**, **CMake**, and **NDK,**, they don't exist on my Android Studio! Please [look](http://imgur.com/a/ZoBm5). – Franky Feb 19 '17 at 08:02
  • Try to open standalone Android SDK Manager (there is a link at the bottom of the SDK window from where you took the screenshot) and go to Packages menu -> Reload. See if that helps. – yakobom Feb 19 '17 at 08:44
  • I did this. No new packages were downloaded or installed! Please look at [this image](https://i.stack.imgur.com/VW0PR.jpg). – Franky Feb 19 '17 at 11:43
  • Thanks man. Using patience and creativity, the issue was solved. And your help was also considerable. (+1 and answer vote). – Franky Feb 19 '17 at 21:18
  • Good - I am very glad to hear that. – yakobom Feb 20 '17 at 04:25