androidandroid-gradle-pluginandroid-studio-2.0

Android Studio : Unable to delete original file


I'm very new to android and I just recently cloned an Android project.

When Android Studios performs the indexing once opening the project, i get this error all the time.

this is the error I get from Android Studio.

Error:(89, 0) Failed to delete original file 'C:\Users\myname\AppData\Local\Temp\gradle_download8065263342645015068bin' 
after copy to 'C:\Users\myname\.gradle\caches\modules-2\files-2.1\com.android.tools.build\gradle\1.5.0\1c3d2b23212349ffbe6479fcb04732c5cddaf98b\gradle-1.5.0.pom'
<a href="openFile:D:\myname\mobile-myapp-tester\platforms\android\build.gradle">Open File</a>

Solution

  • Try the next step to "Refresh" your IDE (android studio)

    Choose File | Invalidate Caches/Restart.