I'm not sure if you are using a Mac or Windows computer, but this hotfix works for Mac.
I came across the same error after cloning a copy of the Android migration guide from github here on Mac OS Sierra:
https:
To fix the error, you must go to your Mac and find the folder in which you cloned the code. Then you will need to "Get Information".

Now change the permission below so that the system, employees, and everyone can read and write to the folder. Then try opening the repo again in Android Studio and you will find that the error has disappeared.

Simon
source share