title: getting 'ninja' error while cleaning project in android studio MacOS
body: <p>I am using Android Studio 3.5 in macos mojave  </p>
  
  <p>I had a project containing both java and ndk code in a folder, lets call it "project_folder_A"  </p>
  
  <p>I made a copy of this folder, renamed it to "project_folder_B" and continued to make modifications; project_folder_A is now deleted  </p>
  
  <p>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   </p>
  
  <pre><code>ninja: fatal: chdir to '..!!folder_path!!.../project_folder_A/app/.cxx/cmake/debug/armeabi-v7a' - No such file or directory    
  </code></pre>
  
  <p>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?  </p>
  
  <p>--- EDIT:  </p>
  
  <p>Looking at the long error message more closely, the exact problem is this line  </p>
  
  <pre><code>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}  
  </code></pre>
  
  <p>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. </p>