问题
I am doing a project using Android Studio. After change the directory to another place. I got an Error "Could not set process working directory to [my old directory path] : could not setcwd() (errno 2: No such file or directory)"
回答1:
Follow below steps.
- Close android studio.
- Delete the .idea folder on your project folder.
- Start android studio and open your project. worked for me.
回答2:
Restart Android studio and open your project from the new directory
来源:https://stackoverflow.com/questions/58044269/android-studio-could-not-set-process-working-directory-to-new-directory