I want to use the android ndk in my existing java android library. I have set up everything, compiling and running works. (Unit tests that use jni complete successfully) This is how my file structure looks like:
When I switch from "Project" to "Android" view in the project explorer it looks like this (as expected):
I want to move test.cpp, test.h and test_jni.cpp to a subdirectory to organize like this:
But as soon as i make that change and switch to "Android" view again, the files are not displayed anymore:
When I adjust the CMakeLists to look for those files in the subdirectory, everything still works but the files are still hidden. Why doesn't android studio display those files? What do I have to do to make it work? It would be very messy to put every h/cpp file into the root folder.



