[Android Studio][NDK][JNI] 另一种方法解决This file is not part of the project Please include it in the ...

有时新增了.cpp文件容易出现这个问题。

网上太多人云亦云的博客了,如果你试过其他的人办法都还没解决,

比如CMake版本啊、CMakeLists.txt都没问题,

那就试试:

把工程目录下的app\.cxx\Debug和Release目录都删掉,

再回到出问题的文件Sync一下,

搞定!

记住,重点是删掉Debug和Release目录,让Android Studio重新生成!

猜你喜欢

转载自blog.csdn.net/H_O_W_E/article/details/127769093