Android NDK development environment, androidndk

Source: Internet
Author: User

Android NDK development environment, androidndk

Now that we want to start learning NDK, let's first take a look at NDK. Android NDK is a collection of tools related to the Android software development kit (SDK). It is used to expand the functions of the Android SDK, this allows developers to use the programming language generated by machine code to implement some modules that require high code performance and embed these modules into Android applications. Android NDK is not a separate tool; it contains APIs, cross compilers, linking programs, debuggers, and build tools. A comprehensive tool set for documents and sample applications.

Let's take a look at how to build the Android NDK development environment:
Preparations:

(1) download the latest Android NDK tool on the official website, here I am given the NDK version: http://pan.baidu.com/s/1gdIQzT5

PS: My system is 64-bit, and the link above is also 64-bit. Here the 32-bit: http://pan.baidu.com/s/1eQzVAW6 is given

(2) In the first step of preparation, you should try to download the latest NDK from the official website. Here I only use the latest NDK. By default, the Android SDK development environment is available on all computers. If not, configure the latest SDK Development Environment on Baidu. (The current Android studio version does not support NDK development)
Start building:
After downloading NDK (1), you can see that it is an exe program. Simply double-click it to open it. After the program is decompressed, you can obtain the complete NDK tool set.



The decompressed NDK directory (2) is shown. Some important files and subdirectories are described in the image. (Here, we suggest you first put android-ndk-r10d-windows-x86_64.exe in the root directory of drive D or another drive. I personally put it under the root directory of drive D and decompress it .)

(3) download eclipse NDK plug-in, here for convenience, give my own NDK plug-in,: http://pan.baidu.com/s/1c0pld7M

The preparations have been completed, so now let's start building:

(1) Put the downloaded com. android. ide. eclipse. ndk_23.0.2.1259578.jar to the plugins under your eclipse.

(2) Start your eclipse, choose Window-> Perferences-> Android-> NDK on the menu bar, set the NDK Location to D: \ android-ndk-r10d, such:
(3) Add the environment variable NDK_ROOT: D: \ android-ndk-r10d, append under the Environment Variable PATH: % NDK_ROOT %;

At this point, our NDK development environment has been set up.

Reprinted please indicate the source: http://blog.csdn.net/android_jiangjun/article/details/44314385



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.