New Native C ++ project
Add test01 method in the MainActivity.java
Create a method 1 jni old ways
Select the java directory, right click -> Open in Terminal
Enter the following statement at the command line:
javah com.hongx.jni.MainActivity
View generate the following files:
Method 2 new ways to create jni
Select test01 method name, and then use the code hints option + enter (mac computer) button,
automatically created jni method, as follows: