I'm currently working on an app for my business and Android Studio is preventing me from completing the simplest task, building the app.

Even making a brand new project and building it as the template still gives me the same error that's below.

Timeout waiting to lock file content cache (G:\My Drive\TEI\app2\.gradle\4.6\fileContent). It is currently in use by another Gradle instance.

Owner PID: unknown

Our PID: 7396

Owner Operation: unknown

Our operation: 
Lock file: G:\My Drive\TEI\app2\.gradle\4.6\fileContent\fileContent.lock

I've even uninstalled and reinstalled Android Studio, restarted my computer and deleted the .gradle folder so a brand new one had to be made

Does anyone know why it keeps doing this?

Edit: I don't have any other gradle instances using the file, as far as I'm aware

  • Is it write protected for any reason? – var firstName Jan 11 '19 at 21:10
  • I don’t think so, how would I check that? – Dillon Jan 12 '19 at 1:13

i don't know if you've figured it out yet or not but all i did was open a terminal window and type: sudo chmod 777 -R .android and then type: sudo chmod 777 -R (Location of Android Studio) just in case and it worked for me

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.