Add a static library (.a file) to an Android project with CMake, get “CMake Error: CMake can not determine linker language for target”
问题 I generate the static library from another Android project, so pretty sure they're useable. I got four .a files based on CPU architectures, one .h file which also has been tested. Now in new project, another .c file want to call the static library, i can't combine the two projects, the static libraries must be called in .a format. I got "CMake Error: CMake can not determine linker language for target", this is my CMakeLists.txt: add_library( mylib STATIC src/main/jniLibs/arm64-v8a/libmylib.a