加上include_directories(src/main/cpp/base/) 然后nativ-lib.cpp文件引用#include <base.h> 如果是其他lib中的cpp文件需要使用,需要在CMakeLists中建立连接关系 比如增加 target_link_libraries( # Specifies the target library. people-lib # Links the log library to the target library. ${log-lib} )