Android NDK 之使用步骤

The steps in building an Android NDK app are:

  1. Create a sub-directory called "jni" and place all the native sources here.
  2. Create a "Android.mk" to describe your native sources to the NDK build system.
  3. Build your native code by running the "ndk-build" (in NDK installed directory) script from your project's directory. The build tools copy the stripped, shared libraries needed by your application to the proper location in the application's project directory.
  4. Finally, compile and run your application using the SDK tools in the usual way. The SDK build tools will package the shared libraries in the application's deployable ".apk" file.

猜你喜欢

转载自blog.csdn.net/superjaingchao/article/details/52611098