I have read a lot of JNI web pages recently, basically all of them are JNI environment configuration, and then there is no more, Android studio to the 3.0 version of the environment is dead, the initialization has a basic file native-lib.cpp, run You can display the string returned from C++ on the interface. I won't introduce this here today, there are too many. It doesn't make any sense at all.
Today's main introduction:
1. How to add a separate file in C language
2, Build between cmake and C/C++
Create a new C language file (of course you can also create a new C++ file):
After the new creation is completed here, we can write code here, or we can call it according to the method name in the activity