Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio 3.0: Unable to delete file

Android Studio 3.0

classpath 'com.android.tools.build:gradle:3.0.0'

Sometimes when I try to start app I get the next error:

Error:java.io.IOException: Unable to delete file: myproject\common\build\intermediates\intermediate-jars\debug\classes.jar
> Unable to delete file: myproejct\common\build\intermediates\intermediate-jars\debug\classes.jar

The proccess java.exe lock this. Why?

like image 577
Alex Avatar asked Nov 15 '17 16:11

Alex


1 Answers

You need to go to the source file directly. Close the studio or the project and go to the path the issue is located at and delete the folder there.

If this doesn't work try Go to the File> Settings> Build,Execution,Deployment> Instant Run > Uncheck this Check box (Enable Instant Run)

And then gradlew clean in the console

like image 134
Vedant Avatar answered Sep 28 '22 22:09

Vedant