The process of adding jni to android studio native java project

** 1, Configuration steps: ** The first step is to create a cpp folder in / src/main / The second step is to create two files in the folder, one is native-lib.cpp and CMakeLists.txt Step 3 add the following contents to the above two documents: //native-lib.cpp #include <jni.h> #include <string> extern "C" JNIEXPORT jstring JNICAL ...

Posted on Fri, 10 Sep 2021 03:23:38 -0400 by kyin