Have a look at the following terminal paste from my system. As you will be able to see, I seem to have several SDK platforms installed for which there is no NDK avaiable:
rutski@electron:~/Documents/sdk/android-ndk/platforms$ android list targets | grep 'android-'
id: 1 or "android-3"
id: 2 or "android-4"
id: 3 or "android-7"
id: 4 or "android-8"
id: 5 or "android-10"
id: 6 or "android-11"
id: 7 or "android-12"
id: 8 or "android-13"
rutski@electron:~/Documents/sdk/android-ndk/platforms$ ls
android-3 android-4 android-5 android-8 android-9
What's the deal here? Is my NDK install broken, or is there a good reason for this?
It also seems that I have android-9 as an NDK, but not as an SDK; but I swear, I installed all SDKs available with the android(1) GUI tool.
You'll need to point to your NDK in your eclipse by adding the path of ndk-build to Window > preferences > android > NDK. Right click on your project folder. Choose android tools -> add native support (the bottom one) and click finish. Now it will ask for a name for your .
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.
Android provides Native Development Kit (NDK) to support native development in C/C++, besides the Android Software Development Kit (Android SDK) which supports Java. [TODO] more. NDK is a complex and advanced topics.
According to the NDK documentation, what would have been android-6
and android-7
is the same as android-5
. My guess is that now they are simply dropping out duplicate directories, and that the API levels not shown are handled by the next available one.
If you are experiencing actual symptoms (e.g., can't build an NDK app for Honeycomb), post a question with a description of those symptoms, either here or on the android-ndk
Google Group. If you are not experiencing symptoms and are simply confused by the directory structure, I wouldn't worry about it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With