Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to configure NDK for Android Studio

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?

like image 216
Franky Avatar asked Feb 18 '17 18:02

Franky


People also ask

Is NDK necessary for Android Studio?

The Android Native Development Kit (NDK): a set of tools that allows you to use C and C++ code with Android. CMake: an external build tool that works alongside Gradle to build your native library. You do not need this component if you only plan to use ndk-build.

Where is Android NDK installed?

Android Studio installs all versions of the NDK in the android-sdk /ndk/ directory. Each version is located in a subdirectory with the version number as its name.

How do I find my NDK path?

Open your Android Studio Preference (or "File->Settings") > Appearance & Behavior > System Settings > Android SDK. You can find the path to your SDK and NDK, which is in the same directory.


1 Answers

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).

like image 135
yakobom Avatar answered Sep 18 '22 15:09

yakobom