//当动态库被加载时这个函数被系统调用 JNIEXPORT jint JNICALL JNI_OnLoad(JavaVM *vm, void *reserved) { LOGI("JNI_OnLoad"); return JNI_VERSION_1_4; } //当动态库被卸载时这个函数被系统调用 JNIEXPORT void JNICALL JNI_OnUnload(JavaVM* vm, void* reserved) { LOGI("JNI_OnUnload"); }标签:OnLoad,OnUnload,生命周期,void,NDK,JNI From: https://www.cnblogs.com/kn-zheng/p/17004989.html