注:此文写于 2015 年,部分镜像地址可能已变更或失效。当前国内推荐使用清华大学 TUNA、中科大 USTC 等镜像站,或直接通过 Android Studio SDK Manager 下载。截至 2025 年,本文提到的部分高校镜像可能已停止服务。

此篇为国内网络环境下的 Android 开发者准备,涵盖以下内容:

  • Android SDK 更新
  • Android Studio 下载
  • AOSP 源码下载
  • Android NDK 下载

国内镜像站

国内高校和云厂商提供了 Android 镜像,速度远快于直连 Google 服务器。

SDK Manager 代理设置(历史方案)

2015 年前后,通过 SDK Manager 设置代理可加速下载:

  • 镜像地址http://ubuntu.buct.edu.cn/http://ubuntu.buct.cn/
  • 端口:默认 80

Android SDK Manager 代理设置

NDK 下载(历史方案)

NDK 镜像地址 —— 更新及时,与官方发布保持同步。

Android SDK Manager 下载

当前推荐方案(2025 年)

如今国内已有更稳定的 Android 镜像方案:

AOSP 源码镜像

镜像源地址说明
清华大学 TUNAhttps://mirrors.tuna.tsinghua.edu.cn/git/AOSP/platform/manifest持续维护,支持每月打包下载
中国科学技术大学 USTChttps://mirrors.ustc.edu.cn/aosp/platform/manifest从 TUNA 同步,长期维护
南方科技大学 SUSTechhttps://mirrors.sustech.edu.cn/AOSP/相对较新

首次同步 AOSP 源码建议使用 TUNA 的每月打包文件(约 80G):

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# 下载 repo 工具(使用清华镜像)
curl https://mirrors.tuna.tsinghua.edu.cn/git/git-repo -o ~/bin/repo
chmod +x ~/bin/repo

# 下载初始化包(首次使用推荐)
wget https://mirrors.tuna.tsinghua.edu.cn/aosp-monthly/aosp-latest.tar
tar xf aosp-latest.tar
cd aosp
repo sync -j4

# 或直接初始化指定版本
repo init -u https://mirrors.tuna.tsinghua.edu.cn/git/AOSP/platform/manifest -b android-14.0.0_r33
repo sync -j4

SDK 下载

Android Studio 的 SDK Manager 目前在国内环境下基本可用,内置了腾讯 CDN 加速。如果仍需镜像,可参考:

  • 腾讯 SDK 镜像https://ac.qq.com/sdk/
  • 阿里云镜像mirrors.aliyun.com

相关资源