Android studio BUILD FAILED My application shows java.io.IOException error: could not delete path

FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformClassesWithProfilers-transformForDebug'.
> java.io.IOException: Could not delete path

Myapplication\app\build\intermediates\transforms\profilers-transform\debug\jars\1\10\226ac48e5c8c6b8707c7d76c6056e5800dee24de.jar'

      

I have Android studio 2.4. please suggest a solution to the above issue, thanks in advance!

+3


source to share


3 answers


Try deleting the directory or file manually.



+2


source


I think some of the files in the target build directory are open in another tool you are using. Only the file to be cleaned opens. The build task "clean" wants to delete all files in the build directory (usually "target"), and if it fails, the build fails.



0


source


I had the same error, tried deleting the directory It didn't work. So this is what I did. I just copied all my project files except the "Build folder" and "Build Folder" in the application to a new directory and I opened the project from the new directory and it worked fine.

0


source







All Articles