This article is a mirror article of machine translation, please click here to jump to the original article.

View: 10572|Reply: 0

Difference between Android sdk and ndk

[Copy link]
Posted on 10/29/2017 2:23:16 PM | | | |


The Android SDK (Android Software Development Kit) can be said to be a must-use as long as you use java to develop Android. It includes SDK Manager and AVD Manage, management of some development versions of the android system, and emulator management. It can only run pure Java programs, with which emulators can be used.
        NDK (Native Development Kit) is similar to SDK in that it is also a development kit. It is convenient to develop C/C++ with it. He has a powerful collection of compilations. Java tuning C, C++ (jni interface), is some java tuning code for C. It will compile C code into a .SO dynamic library, call it with java code through the jni interface, with which we can directly add C code to android code.
        Reasons for NDK:
        A long time ago, Android was only available with SDK. There is no ndk. This means that once Android developers want to use C/C++'s third-party library or need to use C/C++, they must use the unofficial method to call C/C++ using Java's JNI. It's like playing cleverness and going through the back door. The emergence of NDK means that the method called by JNI has become regular, and it has become official, and you don't need to take the road in the future, and the front will follow you. If you want to operate the underlying directly to operate the memory, you have to use C/C++ to operate the address, because Java is a bit difficult to do this. So NDK is a must. For Android, SDK and NDK are 2 different periods of necessity for the same language.





Previous:vs2017 Unable to debug Android programs
Next:.net/c# ini configuration file parsing tool
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com