问题
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
回答1:
Have you tried running your IDE as Administrator? I once had the same kind of problem as my Android Studio didn't have admin rights to make changes in C:/. Hope this helps.
回答2:
In my case, I only removed package "build" then it all worked
回答3:
iam just Rebuild a project, this worked from me
回答4:
Check and make sure that the other programs do not have the same files opened.
来源:https://stackoverflow.com/questions/39055677/cant-create-folder-debug-android-studio