Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gradle sync failed: Failed to create parent directory

I've faced a problem during the installation process of the android studio. I've ignored the failure at the start and after creating a project,it stated that "Gradle sync failed: Failed to create parent directory".

I've downloaded most SDK and searched for possible answers online but I'm still not able to solve the problems.

Please provide me with all the help possible. Thank you

like image 919
Andy Ong Avatar asked Aug 07 '16 03:08

Andy Ong


2 Answers

In my case, I have pulled my repository, and it was displaying this error. To fix, just run the commands:

flutter clean

and then:

flutter run
like image 166
dhaRani Avatar answered Sep 19 '22 08:09

dhaRani


It is because android studio needs admin privilege to create directory in that path. So, to solve this problem simply run android studio as administrator

like image 31
Abdulhakim Zeinu Avatar answered Sep 17 '22 08:09

Abdulhakim Zeinu