Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't create folder "debug" Android studio

Hi am presently trying to build my project in android but i keep getting this

Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
java.io.IOException: Could not delete folder C:\Users\Henry\Desktop\Andriod\World\GATES\app\build\intermediates\transforms\dex\debug\folders\1000

even when i decided to delete the folder by myself i got this

Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
java.io.IOException: Could not create empty folder C:\Users\Henry\Desktop\Andriod\World\GATES\app\build\intermediates\transforms\dex\debug

I then fixed my dependencies to debug thinking that will solve it but got this

Error:Execution failed for task ':app:generateDebugBuildConfig'.
java.io.IOException: Could not delete folder C:\Users\Henry\Desktop\Andriod\World\GATES\app\build\generated\source\buildConfig\debug\com\ant

How can I fix all of this mess and there seems to be little of this kind of problems on google

like image 264
Henry Avatar asked Jan 06 '23 12:01

Henry


1 Answers

In my case, I only removed package "build" then it all worked

like image 171
Dmitriy Melekhov Avatar answered Jan 08 '23 02:01

Dmitriy Melekhov