Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android SDK download with Eclipse, getting error message: Failed to create directory C:/

Tags:

android

sdk

Why does this happen? It doesn't matter which package I pick, always the same error message:

Downloading Android SDK Platform-tools, revision 3
Failed to create directory C:\Program Files\Android\android-sdk\temp
like image 474
JBS Avatar asked Mar 12 '11 06:03

JBS


3 Answers

Make sure you have writing permissions for that folder. Try starting Eclipse or the SDK Manager as Administrator.

like image 105
red Avatar answered Nov 11 '22 11:11

red


You only have to run SDK Manager as Administrator, right click and select Run as Administrator.

like image 10
rajput Avatar answered Nov 11 '22 12:11

rajput


If you put the Android SDK (or anything else) in Program Files, Windows will, by default, require Admin access to edit files in it. But you can change that by changing the folder permissions:

In Windows, right click on the android SDK folder, click Properties. Go to the Security tab, click Edit to change the permissions. Select normal Users and check the box to Allow Full control.

Then, applications that you launch as a normal user will be able to edit the SDK, such as to update it or compile libraries in it.

like image 6
Luke Avatar answered Nov 11 '22 11:11

Luke