Can't create folder “debug” Android studio

痞子三分冷 提交于 2019-12-10 19:12:41

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!