Android Ndk Jni dynamic registration method and static registration

Table of contents

1. Static registration method

2. Dynamic registration method

3. Source code


1. Static registration method

1. Create a new jni directory under the project name\app\src\main

2. In the jni directory, create a new Android.mk file 
and write the following configuration 
LOCAL_PATH := $(call my-dir)//Get the directory inclu where the current Android.mk is 
located

Guess you like

Origin blog.csdn.net/s_nshine/article/details/132253198