JNI & NDK

  • JNI (Java Native Interface), Java Native Interface, so Java and other local languages ​​(C / C ++) interaction, JNI is the Java language features, and not directly related to Android;

  • NDK (Native Development Kit), a development toolkit Android, rapid development of C / C ++ DLL, and the application and automatically packaged into SO APK, NDK Android belongs, not directly related to Java;

  • When cross compiler Android C / C ++ libraries, tools required NDK compiling chain, chain 64 NDK tool comprising:
    1. aarch64-linux-android-gcc
    2. aarch64-linux-android-g++
    3. aarch64-linux-android-ar database management tool
    4. aarch64-linux-android-as Assembler
    5. aarch64-linux-android-ld linker
    6. ndk-gdb

If you want to make C / C ++ executable or DLL can run on the Android operating system, use NDK toolchain to compile, assemble, link.
Aarch64-Android Linux-gcc-represented aarch64 architecture -Linux operating system kernel -Android correspondence the gcc

Guess you like

Origin www.cnblogs.com/cristiano-duan/p/12144866.html