Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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>
like image 777
Aaron Avatar asked Jul 19 '16 09:07

Aaron


2 Answers

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

Choose File | Invalidate Caches/Restart.

like image 172
Nir Duan Avatar answered Oct 05 '22 15:10

Nir Duan


Another possible cause is the Anti-virus. It may block Gradle or Java

like image 38
yazantahhan Avatar answered Oct 05 '22 14:10

yazantahhan