I\'m trying to rebuild my Android Studio Gradle project (containing mostly Kotlin code), but it started to throw an UnableToDeleteFileException during the clean
UnableToDeleteFileException
As suggested in the bug report, uncommenting the line
idea.jars.nocopy=false
in the idea.properties file has solved the issue for me.
idea.properties
Note that this needs to be done every time Android Studio updates.