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
I had the same problem and this worked for me: