I am using Android Studio 3.5 in macos mojave
I had a project containing both java and ndk code in a folder, lets call it "project_folder_A"
I made a copy of this folder, renamed it to "project_folder_B" and continued to make modifications; project_folder_A is now deleted
Everything works as expected, however, if I try to clean the project, or change it from current "release" mode to "debug" mode to compile again, I get an error saying
ninja: fatal: chdir to '..!!folder_path!!.../project_folder_A/app/.cxx/cmake/debug/armeabi-v7a' - No such file or directory
I cannot find a reference to project_folder_A anywhere inside the current project or in the gradle files. Why is android studio still remembering the old project folder? How do I remove all reference to the old folder name and force everything to compile using the current project folder?
--- EDIT:
Looking at the long error message more closely, the exact problem is this line
Error while executing process ..!!sdk path!!.../Android/sdk/cmake/3.10.2.4988404/bin/ninja with arguments {-C ..!!folder_path!!.../project_folder_A/app/.cxx/cmake/debug/armeabi-v7a clean}
which causes an error because project_folder_A doesn't exist. All the other exception errors in the long build error message seem to have been caused by this error.