1.CMake Error: CMake can not determine linker language for target:
可能是CMakeLists.txt-->add_library(.............)里面的cpp文件路径找不到。
2.no static or non-static method
检查JNINativeMethod method_table[] 定义的函数签名是否正确;
我定义了test方法,在签名的时候"()V;"多了个";"号。正确的应该是
{"test", "()V", (void *)test},