简体   繁体   English

Android Studio-下载Android SDK工具时出错

[英]Android Studio - Error while downloading Android SDK tools

While installing Android Studio I got the following error at the time of initializing. 在安装Android Studio时,初始化时出现以下错误。 And could not override with the given option (not accepting input). 并且无法使用给定的选项覆盖(不接受输入)。

Error : "Failed to rename directory C:\\AndroidSDK\\tools to C:\\AndroidSDK\\temp\\ToolPackage.old01." 错误:“无法将目录C:\\ AndroidSDK \\ tools重命名为C:\\ AndroidSDK \\ temp \\ ToolPackage.old01。”

I gave installation path to C drive for both Android SDK and Studio. 我给出了Android SDK和Studio的C驱动器的安装路径。

Android Studio错误图片

Any Suggestions? 有什么建议么?

Solution: 解:

Open Android Studio as "Run as administrator" 以“以管理员身份运行”打开Android Studio

I might be stating an obvious one here. 我可能会在这里说明一个明显的例子。

  • Do you know if you have write permissions on the C drive? 您知道您是否对C驱动器具有写权限吗?

What have you opened in your explorer? 您在资源管理器中打开了什么? Maybe you are in this directory. 也许您在此目录中。 That is what i could imagine. 那是我能想象的。

I re-opened Android Studio with admin privileges. 我以管理员权限重新打开了Android Studio。 Right click on Android Studio select "Run as administrator". 右键单击Android Studio,选择“以管理员身份运行”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM