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