Get error after add new db to localhost on Mendix Studio Pro 9.24.2
Hi, I face this error after click on the clean deployment directory. Does anyone know how to solve this issue? > Task :clean FAILED FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':clean'. > java.io.IOException: Unable to delete directory 'C:\Users\afiq.azmir\Documents\Mendix\Kaneka - eForms-main\deployment\model' Failed to delete some children. This might happen because a process has files open or has its working directory set in the target directory. - C:\Users\afiq.azmir\Documents\Mendix\Kaneka - eForms-main\deployment\model\bundles\project.jar - C:\Users\afiq.azmir\Documents\Mendix\Kaneka - eForms-main\deployment\model\bundles * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 5s 1 actionable task: 1 executed
It appears that there may be files open within your directory “C:\Users\afiq.azmir\Documents\Mendix\Kaneka - eForms-main\deployment\model” or some process having its working directory set in the target directory.
Check if you have the necessary permissions to delete the directory, and whatever is in it. Also check if you have the access rights to that directory.
You can try to close any files / programs open which might be accessing files within the \deployment\model directory. Also try restarting Studio Pro, it might help release any file locks that could be preventing the deletion.
If all else fails, you can also try deleting the directory manually outside of Mendix Studio Pro.