I’m using Android Studio Arctic Fox (2020.3.1 Patch 3 | Build #AI-203.7717.56.2031.7784292, built on October 1, 2021). When I try to build my project, gradle task ":app:dexBuilderDebug" fails throwing AccessDeniedException. For a short time, the problem is solved only by manually deleting these directories. So how can I make Android Studio be able to delete these directories automatically again? (running as administrator didn’t help). Thanks
Full exception message:
Execution failed for task ':app:dexBuilderDebug'.
> java.nio.file.AccessDeniedException: C:UsersRomanAndroidDevelopmentAndroidProjectsProjectappbuildintermediatesdesugar_graphdebugoutcurrentProjectdirs_bucket_0
3
Answers
The problem was that the project folder was syncing with Google Drive. One had only to remove it from the synchronized ones, and everything worked out right away. My advice is to use VCS, their functionality will certainly be enough
My situation was the same with the post. But as the only one answer, it’s not suitable for me. My solution is to delete all of the files in the folder that the android studio IDE command told you in the wrong place. Then, you build the code again, it works.
My solution to the dirs_bucket_0 error is just to hit Build -> Clean Project, then Build -> Rebuild Project. This got rid of the error and I was then able to run the app on my device while keeping everything synced on Google Drive.