NDK开发新增cpp文件,cpp目录下看不到 报This file is not part of the project. Pelase include it

论坛 期权论坛 脚本     
匿名技术用户   2021-1-5 23:16   11   0

找到项目目录最下方。

修改CMakeList.txt文件配置 添加file(GLOB native_srcs "src/main/cpp/*.cpp") 和 ${native_srcs}如下图所示:

重新build,问题就能解决了。

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:7942463
帖子:1588486
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP