【问题标题】:Android Studio 0.8.6: Error installing Android SDK Platform 20Android Studio 0.8.6:安装 Android SDK 平台 20 时出错
【发布时间】:2014-09-02 21:20:04
【问题描述】:

应用来自Android Studio 0.8.6: Failure [INSTALL_FAILED_OLDER_SDK]Android Studio : Failure [INSTALL_FAILED_OLDER_SDK] 的修复程序,我收到错误:

Loading SDK information...
Refresh Sources:
  Fetched Add-ons List successfully
  Refresh Sources

Installing Archives:
  Preparing to install archives
  Downloading SDK Platform Android 4.4W, API 20, revision 1
  Installing SDK Platform Android 4.4W, API 20, revision 1
  Failed to rename directory C:\android-studio\sdk\platforms\android-20 to C:\android-studio\sdk\temp\PlatformPackage.old01.

SDK Manager: failed to install
-= Warning ! =-
A folder failed to be moved. On Windows this typically means that a program is using that folder (for example Windows Explorer or your anti-virus software.)
Please momentarily deactivate your anti-virus software or close any running programs that may be accessing the directory 'C:\android-studio\sdk\platforms\android-20'.
When ready, press YES to try again.
Note: you  can use --force to override to yes.
[y/n] =>
  Done. Nothing was installed.

我做错了什么,我该如何解决?

【问题讨论】:

    标签: android android-studio


    【解决方案1】:

    您已将项目保存在 SDK 文件夹中。当 SDK 尝试更新时,整个文件夹将被新数据替换。由于项目是在 IDE 中打开的,并且 SDK 正在尝试替换显示此错误的文件夹。将您的项目文件夹复制到其他文件夹中并关闭您当前的项目并尝试更新。

    【讨论】:

    • 谢谢,File > Close Project,在 Android Studio 窗口中按 Configure > SDK Manager,然后安装缺少的包就可以了。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-06-19
    • 2015-01-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-05-06
    相关资源
    最近更新 更多