android sdk更新失败Failed to create directory C:\ Program Files\Android\android-sdk\temp

来源:互联网 发布:淘宝假冒品牌仅退款 编辑:程序博客网 时间:2024/06/05 15:09

Fixing “Failed to create directory…” error while installing SDK Platform

解决SDK平台安装失败的问题


This is a common problem faced by Windows 7 users while installing SDK Platform Tools. The error says:
Downloading Android SDK Platform-tools, revision 7
Failed to create directory C:\ Program Files\Android\android-sdk\temp
Downloading SDK Platform Android 2.3.3, API 10, revision 2
Failed to create directory C:\ Program Files\Android\android-sdk\temp
Downloading SDK Platform Android 2.2, API 8, revision 3
Failed to create directory C:\ Program Files\Android\android-sdk\temp
Downloading SDK Platform Android 2.1, API 7, revision 3
Failed to create directory C:\ Program Files\Android\android-sdk\temp

解决方法一:

To fix this issue you need to disable your UAC (User Account Control) setting completely. Go to Control Panel > User Accounts and Family Safety > User Accounts > Change User Accounts Control Settings. Click there and this will open a new Window for UAC permissions or Click on Windows Button > Type UAC > Hit EnterDrag down the slider to Never notify and Click Ok. After that, restart Windows to apply settings.

按上面步骤,更改用户账户控制设置,然后重新启动即可。如下图:



解决方法二:(推荐)

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

确保对这个文件夹有写的权限,以管理员方式运行Eclipse。



原创粉丝点击