How can i get rid of this error FileNotFoundException

Viewed 61
C:\Users\HP\AndroidStudioProjects\MyApplication7\app\build\intermediates\incremental\packageDebug\tmp\debug\zip-cache\androidResources (Access is denied)

// i dont understand why this is not working, someone help me

2 Answers

This is a permissiosn problem. Run android studio as administrator. Right click on the Android Studio icon and Run as adinistrator

If you're on a mac use sudo to give permissions

Try This

Goto File -> Invalidate caches / Restart

Shutdown Android Studio

Remove/Delete .gradle folder in the user home directory

Restart Android Studio (It will download gradle metadata and data)

Gradle build succeed

Rebuild project. Done.

Related