OS version: Ubuntu 14.04 LTE 64 Bit
Java JRE/JDK version: Oracle JDK 1.8.0_11
Project directory is on a NTFS based drive.
Whenever I try to clean my
I solved it by Upgrading gradle version in build.gradle(project)
I had a similar problem, when I was trying to debug my first android app. If you are running Android Studio on windows, I just restarted the Android studio and I did run Android Studio as Administrator which fixed the issue.
1) Go To File > Settings > Build, Execution, Deployment > Instant Run > Uncheck this Check box (Enable Instant Run to hot swap code).
2) Restart your android studio
On Linux this could happen if you have a locked
directories that prevents Android Studio from Deleting files.
you can run the Following command on Terminal:
sudo chown -R $USER: $HOME
Then try to rebuild --> Works for me