Failed to create directory C:\ Program Files\Android\android-sdk\temp

用SDK Manager安装 SDK Platform Tools的时候遇到:

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

原因是SDK Manager并没有获取修改文件的权限。所以解决方法是:在

sdk manager.exe上面点右键->以管理员身份运行。

你可能感兴趣的:(安卓开发)