package com.cmake.ndk1.jni; import com.cmake.ndk1.base.ICallbackMethod; import com.cmake.ndk1.base.IThreadCallback; public class JNIInvokeMethod { static { System.loadLibrary("invoke-method-lib"); } public native void nativeCallback(ICallbackMethod callback); public native void nativeThreadCallback(IThreadCallback callback); }
add_library( #动态库名称 invoke-method-lib invoke-method-lib SHARED jni/jni_invoke_method.cpp )