简体   繁体   English

Android SDK Manager,包的本地副本

[英]Android SDK Manager, local copy of packages

On Windows XP, is there a way to: 在Windows XP上,有没有办法:

  • Find the packages being downloaded by Android SDK Manager, 查找Android SDK Manager下载的软件包,
  • Create backup copies of the packages, 创建包的备份副本,

And then later, on a fresh install of Windows XP: 然后,在全新安装的Windows XP上:

  • Install Android SDK Manager, 安装Android SDK Manager,
  • Copy the backup copies of the packages to the "correct" location, 将软件包的备份副本复制到“正确”的位置,
  • and install the packages? 并安装包?

Assuming you are using latest Android SDK r18- 假设您使用的是最新的Android SDK r18-

The OS wouldn't matter, below steps would work for PC, Mac or Linux also. 操作系统无关紧要,下面的步骤也适用于PC,Mac或Linux。

  1. Download SDK for required platform. 下载所需平台的SDK。
  2. Install required packages, like API 8, Google APIs etc. 安装所需的软件包,如API 8,Google API等。
  3. Now after installing required packages you should see these folders in your SDK installation directory. 现在,在安装所需的软件包后,您应该在SDK安装目录中看到这些文件夹。 ( platforms, extras, add-ons, system-images ) platforms, extras, add-ons, system-images
  4. Just copy them to other system (zip first as these have thousands of files) where you need to have the packages installed. 只需将它们复制到其他系统(首先是zip,因为它们有数千个文件),您需要安装这些软件包。 (Install SDK r18 beforehand, extract the zip or use .exe, but don't run SDK manager to update) (事先安装SDK r18,解压缩或使用.exe,但不要运行SDK管理器进行更新)
  5. Launch SDK Manager and it should detect the packages. 启动SDK Manager,它应该检测包。

Alternatively copy complete SDK installation folder and copy it to other system, but it would only work on Windows to Windows and Linux to Linux or Mac to Mac. 或者复制完整的SDK安装文件夹并将其复制到其他系统,但它只适用于Windows到Windows和Linux到Linux或Mac到Mac。

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

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