Error:error: unable to remove file: Permission denied

Error:error: unable to remove file: Permission denied

 

clang++.exe: error: unable to remove file: Permission denied
  clang++.exe: error: linker command failed with exit code 1 (use -v to see invocation)
  ninja: build stopped: subcommand failed.

 

JNI里写的C++增加了函数或修改了,如果此时是Debug模式下,而且还没退出程序,就出现这个Permission denied的提示。解决也很简单:就是退出App即可。如果退出无响应,直接拔usb,重新插上也可以