
Stop.Īndroid NDK: Your APP_BUILD_SCRIPT points to an unknown file: /Users/uncle/Workspaces/ndk-setup/NDKSetup/jni/Android.mk Press run and you will get this error: /Users/uncle/ndk-setup/android-ndk-r6b/build/core/add-application.mk:118: *** Android NDK: Aborting. You should now have something looking like this: The working directory is the jni folder we created in our project. Click on ‘Browse file system…’ and locate the ndk-build file located under your NDK folder. Location is the location of the external tool you want to run, in our case the ndk-build file. Mark the ‘Program’ and click on the ‘new’-icon. Click on the small down arrow on the external tool button and choose the ‘External Tools Configuration…’.

The next thing we need to do is to setup Eclipse so we can build the JNI code.
#ANDROID NDK ANDROID STUDIO TUTORIAL HOW TO#
I will show you how to get started by making a small application called NDKSetup.Ĭreate a new android project for this example I will call it NDKSetup.įirst thing we need to do is to create a new folder called ‘jni’
#ANDROID NDK ANDROID STUDIO TUTORIAL INSTALL#
Select it and click ‘next’ and follow the install instructions. Under ‘Programming Languages’ you will find ‘C/C++ Development Tools’. From the ‘Help’ menu choose ‘Install New Software…’įrom the drop down select the update site for your eclipse version, in my case Indigo. To make it a bit easier we also install the C/C++ Development Tools to get C/C++ support in Eclipse. The NDK is located at with an installation guide. The SDK is located at There is a really good installation guide at Android NDK Installing Eclipse is simply just unpacking the downloaded file. I usually go with the Eclipse Classic version.

You will need to download and install a couple of things. So you will need some knowledge about working with Android. I will not get into details about installing the basic components but will focus on setting up the environment. My goal with this entry is to gather all the information you need to get started with the Android NDK. You want to try out the Android NDK? I have gotten a lot of questions about how to setup and work with the NDK and I decided to write down how I do it.
